1
0
Fork 0
mirror of https://github.com/kou029w/quot.git synced 2025-01-18 16:08:03 +00:00

refactor syntax

This commit is contained in:
Nebel 2022-09-17 17:04:18 +09:00
parent eaab4dad30
commit ad1e6ba9e4
2 changed files with 3 additions and 4 deletions

View file

@ -5,9 +5,8 @@ line { Indent* ((AutoLink | word) space*)* "\n" }
@tokens {
space { $[ \t] }
letter { ![ \t\n] }
word { letter+ }
Heading { (letter | space)+ }
word { ![ \t\n]+ }
Heading { ![\n]+ }
Indent { space }
AutoLink { ("http" | "https") "://" word }
@precedence { AutoLink, word }

View file

@ -9,7 +9,7 @@ export const parser = LRParser.deserialize({
maxTerm: 14,
skippedNodes: [0],
repeatNodeCount: 4,
tokenData: "(h~RWOXkXY!gYZ#PZpkpq!gq#[k#[#]#U#]~kVrTQP]UOXkXY!RZpkpq!Rq~kP!WTQPOX!RXY!RZp!Rpq!Rq~!RV!pTQPRQ^SOX!RXY!RZp!Rpq!Rq~!R~#UOZ~V#]VQP]UOXkXY!RZpkpq!Rq#hk#h#i#r#i~kV#yVQP]UOXkXY!RZpkpq!Rq#hk#h#i$`#i~kV$gVQP]UOXkXY!RZpkpq!Rq#dk#d#e$|#e~kV%TXQP]UOXkXY!RZpkpq!Rq![k![!]%p!]#gk#g#h'z#h~kV%wVQP]UOXkXY!RZpkpq!Rq!Pk!P!Q&^!Q~kV&eVQP]UOXkXY!RZpkpq!Rq!Pk!P!Q&z!Q~kV'RTQP]UOX'bXY!RZp'bpq!Rq~'bV'kTQPSU]UOX'bXY!RZp'bpq!Rq~'bV(RVQP]UOXkXY!RZpkpq!Rq![k![!]%p!]~k",
tokenData: "(U~RWOXkXY!^YZ!mZpkpq!^q#[k#[#]!r#]~kVrTQP]UOXkXY!RZpkpq!Rq~kP!WQQPOY!RZ~!RV!gQQPRQ^SOY!RZ~!R~!rOZ~V!yVQP]UOXkXY!RZpkpq!Rq#hk#h#i#`#i~kV#gVQP]UOXkXY!RZpkpq!Rq#hk#h#i#|#i~kV$TVQP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