Explorar el Código

fix: comments can have multiple delimiting backslashes

pull/135/head
Amaan Qureshi hace 3 años
padre
commit
16456ce9a1
No se encontró ninguna clave conocida en la base de datos para esta firma ID de clave GPG: E67890ADC4227273
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. +1
    -1
      grammar.js

+ 1
- 1
grammar.js Ver fichero

@ -1002,7 +1002,7 @@ module.exports = grammar({
// http://stackoverflow.com/questions/13014947/regex-to-match-a-c-style-multiline-comment/36328890#36328890
comment: $ => token(choice(
seq('//', /(\\(.|\r?\n)|[^\\\n])*/),
seq('//', /(\\+(.|\r?\n)|[^\\\n])*/),
seq(
'/*',
/[^*]*\*+([^/*][^*]*\*+)*/,

Cargando…
Cancelar
Guardar