Il sito funziona meglio con JavaScript.
Home
Esplora
Aiuto
Accedi
isprogram
/
tree-sitter-c
mirror da
https://github.com/tree-sitter/tree-sitter-c
Segui
1
Vota
0
Forka
0
Codice
Problemi
0
Projects
0
Rilasci
79
Wiki
Attività
Sfoglia il codice sorgente
Fix inefficient string tokenization
pull/16/merge
Max Brunsfeld
7 anni fa
parent
05f62b9f84
commit
a71bef804d
3 ha cambiato i file
con
885 aggiunte
e
823 eliminazioni
Visualizzazione separata
Opzioni Diff
Mostra statistiche
Scarica il file Patch
Scarica il file Diff
+1
-1
grammar.js
+1
-1
src/grammar.json
+883
-821
src/parser.c
+ 1
- 1
grammar.js
Vedi File
@ -700,7 +700,7 @@ module.exports = grammar({
string_literal
:
$
=>
seq
(
'"'
,
repeat
(
choice
(
token
.
immediate
(
prec
(
1
,
/[^\\"\n]/
)
)
,
token
.
immediate
(
prec
(
1
,
/[^\\"\n]
+
/
)
)
,
$
.
escape_sequence
)
)
,
'"'
+ 1
- 1
src/grammar.json
Vedi File
@ -4152,7 +4152,7 @@
"value"
:
1
,
"content"
:
{
"type"
:
"PATTERN"
,
"value"
:
"[^\\\\\"\\n]"
"value"
:
"[^\\\\\"\\n]
+
"
}
}
}
,
+ 883
- 821
src/parser.c
File diff soppresso perché troppo grande
Vedi File
Scrivi
Anteprima
Caricamento…
Annulla
Salva