Este site funciona melhor com JavaScript.
Página inicial
Explorar
Ajuda
Acessar
isprogram
/
tree-sitter-c
espelhamento de
https://github.com/tree-sitter/tree-sitter-c
Observar
1
Favorito
0
Fork
0
Código
Issues
0
Projects
0
Versões
79
Wiki
Atividade
Ver código fonte
Require a line break after an unknown preprocessor directive
pull/8/head
Max Brunsfeld
8 anos atrás
pai
e6c28cafb3
commit
3a97441df7
3 arquivos alterados
com
54074 adições
e
53705 exclusões
Visão dividida
Opções de diferenças
Mostrar estatísticas
Baixar arquivo de patch
Baixar arquivo de diferenças
+2
-1
grammar.js
+23
-2
src/grammar.json
+54049
-53702
src/parser.c
+ 2
- 1
grammar.js
Ver arquivo
@ -104,7 +104,8 @@ module.exports = grammar({
preproc_call
:
$
=>
seq
(
$
.
preproc_directive
,
$
.
preproc_arg
optional
(
seq
(
/[ \t]+/
,
$
.
preproc_arg
)
)
,
'\n'
)
,
preproc_if
:
$
=>
seq
(
+ 23
- 2
src/grammar.json
Ver arquivo
@ -292,8 +292,29 @@
"name"
:
"preproc_directive"
}
,
{
"type"
:
"SYMBOL"
,
"name"
:
"preproc_arg"
"type"
:
"CHOICE"
,
"members"
:
[
{
"type"
:
"SEQ"
,
"members"
:
[
{
"type"
:
"PATTERN"
,
"value"
:
"[ \\t]+"
}
,
{
"type"
:
"SYMBOL"
,
"name"
:
"preproc_arg"
}
]
}
,
{
"type"
:
"BLANK"
}
]
}
,
{
"type"
:
"STRING"
,
"value"
:
"\n"
}
]
}
,
+ 54049
- 53702
src/parser.c
Diferenças do arquivo suprimidas por serem muito extensas
Ver arquivo
Escrever
Pré-visualização
Carregando…
Cancelar
Salvar