mirror of
https://github.com/pulsar-edit/pulsar.git
synced 2024-10-26 11:08:40 +03:00
[tree-sitter] Add firstLineRegex
to C grammars
This commit is contained in:
parent
2430f2b85a
commit
3ab0c39f24
@ -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:
|
||||
|
@ -3,6 +3,7 @@ scopeName: 'source.c'
|
||||
type: 'tree-sitter'
|
||||
parser: 'tree-sitter-c'
|
||||
|
||||
firstLineRegex: '-\\*-[^*]*(Mode:\\s*)?C(\\s*;.*?)?\\s*-\\*-'
|
||||
injectionRegex: 'c|C'
|
||||
|
||||
fileTypes: [
|
||||
|
Loading…
Reference in New Issue
Block a user