[tree-sitter] Add firstLineRegex to C grammars

This commit is contained in:
Andrew Dupont 2023-12-07 11:12:15 -08:00
parent 2430f2b85a
commit 3ab0c39f24
2 changed files with 2 additions and 0 deletions

View File

@ -3,6 +3,7 @@ scopeName: 'source.c'
type: 'modern-tree-sitter'
parser: 'tree-sitter-c'
firstLineRegex: '-\\*-[^*]*(Mode:\\s*)?C(\\s*;.*?)?\\s*-\\*-'
injectionRegex: '^(c|C)$'
treeSitter:

View File

@ -3,6 +3,7 @@ scopeName: 'source.c'
type: 'tree-sitter'
parser: 'tree-sitter-c'
firstLineRegex: '-\\*-[^*]*(Mode:\\s*)?C(\\s*;.*?)?\\s*-\\*-'
injectionRegex: 'c|C'
fileTypes: [