Este sítio funciona melhor com JavaScript.
Página inicial
Explorar
Ajuda
Iniciar sessão
isprogram
/
tree-sitter-c
espelho de
https://github.com/tree-sitter/tree-sitter-c
Vigiar
1
Marcar como favorito
0
Derivar
0
Código
Questões
0
Projects
0
Lançamentos
79
Wiki
Trabalho
Ver a proveniência
Require a line break after an unknown preprocessor directive
pull/8/head
Max Brunsfeld
há 8 anos
ascendente
e6c28cafb3
cometimento
3a97441df7
3 ficheiros alterados
com
54074 adições
e
53705 eliminações
Visualização em 2 colunas
Opções das diferenças
Mostrar estatísticas
Descarregar ficheiro patch
Descarregar ficheiro diff
+2
-1
grammar.js
+23
-2
src/grammar.json
+54049
-53702
src/parser.c
+ 2
- 1
grammar.js
Ver ficheiro
@ -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 ficheiro
@ -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
A apresentação das diferenças no ficheiro foi suprimida por ser demasiado grande
Ver ficheiro
Escrever
Pré-visualizar
Carregando…
Cancelar
Guardar