@willbooster/tree-sitter-c 26.0.0 → 27.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@willbooster/tree-sitter-c",
3
- "version": "26.0.0",
3
+ "version": "27.0.0",
4
4
  "description": "C grammar for tree-sitter",
5
5
  "keywords": [
6
6
  "c",
package/src/pragma.h CHANGED
@@ -1,4 +1,4 @@
1
- // code-gauge-allow-file fileNcss 482 -- Preprocessor tokens and pragma operators share names, spacing, and literal readers.
1
+ // code-gauge-allow-file fileNcss 484 -- Preprocessor tokens and pragma operators share names, spacing, and literal readers.
2
2
  #ifndef TREE_SITTER_C_PRAGMA_H_
3
3
  #define TREE_SITTER_C_PRAGMA_H_
4
4
 
@@ -146,6 +146,7 @@ static bool scan_pragma_spacing(TSLexer *lexer) {
146
146
 
147
147
  static bool scan_pragma_comment(TSLexer *lexer) {
148
148
  lexer->advance(lexer, false);
149
+ if (!scan_preproc_splices(lexer)) return false;
149
150
  if (lexer->lookahead == '/') return scan_preproc_line_comment(lexer);
150
151
  if (lexer->lookahead == '*') return scan_preproc_block_comment(lexer);
151
152
  return false;
Binary file
package/tree-sitter.json CHANGED
@@ -24,7 +24,7 @@
24
24
  }
25
25
  ],
26
26
  "metadata": {
27
- "version": "26.0.0",
27
+ "version": "27.0.0",
28
28
  "license": "MIT",
29
29
  "description": "C grammar for tree-sitter",
30
30
  "authors": [