Ver a proveniência

Require a line break after an unknown preprocessor directive

pull/8/head
Max Brunsfeld há 8 anos
ascendente
cometimento
3a97441df7
3 ficheiros alterados com 54074 adições e 53705 eliminações
  1. +2
    -1
      grammar.js
  2. +23
    -2
      src/grammar.json
  3. +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


Carregando…
Cancelar
Guardar