Fix lexer bug.
This commit is contained in:
parent
ee592b121a
commit
e553f13cef
4 changed files with 2851 additions and 3080 deletions
|
|
@ -1,281 +1,44 @@
|
|||
<<<<<<< .mine
|
||||
[[
|
||||
"start",
|
||||
"[\"start\"]",
|
||||
["keyword","xquery"],
|
||||
["text"," "],
|
||||
["keyword","version"],
|
||||
["text"," "],
|
||||
["string","\"1.0\""],
|
||||
["string","\""],
|
||||
["string","1.0"],
|
||||
["string","\""],
|
||||
["text",";"]
|
||||
],[
|
||||
"start"
|
||||
"[\"start\"]"
|
||||
],[
|
||||
"start",
|
||||
"[\"start\"]",
|
||||
["keyword","let"],
|
||||
["text"," "],
|
||||
["variable","$message"],
|
||||
["text"," "],
|
||||
["keyword.operator",":="],
|
||||
["text"," "],
|
||||
["string","\"Hello World!\""]
|
||||
["string","\""],
|
||||
["string","Hello World!"],
|
||||
["string","\""]
|
||||
],[
|
||||
"start",
|
||||
"[\"start\",\"StartTag\",\"TagContent\"]",
|
||||
["keyword","return"],
|
||||
["text"," "],
|
||||
["text","<"],
|
||||
["meta.tag","results"],
|
||||
["text",">"]
|
||||
["meta.tag","<results"],
|
||||
["meta.tag",">"]
|
||||
],[
|
||||
"start",
|
||||
"[\"start\",\"StartTag\",\"TagContent\"]",
|
||||
["text"," "],
|
||||
["text","<"],
|
||||
["meta.tag","message"],
|
||||
["text",">"],
|
||||
["lparen","{"],
|
||||
["meta.tag","<message"],
|
||||
["meta.tag",">"],
|
||||
["text","{"],
|
||||
["variable","$message"],
|
||||
["rparen","}"],
|
||||
["text","</"],
|
||||
["meta.tag","message"],
|
||||
["text",">"]
|
||||
["text","}"],
|
||||
["meta.tag","</message>"]
|
||||
],[
|
||||
"start",
|
||||
["text","</"],
|
||||
["meta.tag","results"],
|
||||
["text",">"]
|
||||
"[\"start\"]",
|
||||
["meta.tag","</results>"]
|
||||
],[
|
||||
"start"
|
||||
]]
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
=======
|
||||
[
|
||||
[
|
||||
"[\"start\"]",
|
||||
[
|
||||
"keyword",
|
||||
"xquery"
|
||||
],
|
||||
[
|
||||
"text",
|
||||
" "
|
||||
],
|
||||
[
|
||||
"keyword",
|
||||
"version"
|
||||
],
|
||||
[
|
||||
"text",
|
||||
" "
|
||||
],
|
||||
[
|
||||
"string",
|
||||
"\""
|
||||
],
|
||||
[
|
||||
"string",
|
||||
"1.0"
|
||||
],
|
||||
[
|
||||
"string",
|
||||
"\""
|
||||
],
|
||||
[
|
||||
"text",
|
||||
";"
|
||||
]
|
||||
],
|
||||
[
|
||||
"[\"start\"]"
|
||||
],
|
||||
[
|
||||
"[\"start\"]",
|
||||
[
|
||||
"keyword",
|
||||
"let"
|
||||
],
|
||||
[
|
||||
"text",
|
||||
" "
|
||||
],
|
||||
[
|
||||
"variable",
|
||||
"$message"
|
||||
],
|
||||
[
|
||||
"text",
|
||||
" "
|
||||
],
|
||||
[
|
||||
"keyword.operator",
|
||||
":="
|
||||
],
|
||||
[
|
||||
"text",
|
||||
" "
|
||||
],
|
||||
[
|
||||
"string",
|
||||
"\""
|
||||
],
|
||||
[
|
||||
"string",
|
||||
"Hello World!"
|
||||
],
|
||||
[
|
||||
"string",
|
||||
"\""
|
||||
]
|
||||
],
|
||||
[
|
||||
"[\"start\",\"StartTag\",\"TagContent\"]",
|
||||
[
|
||||
"keyword",
|
||||
"return"
|
||||
],
|
||||
[
|
||||
"text",
|
||||
" "
|
||||
],
|
||||
[
|
||||
"meta.tag",
|
||||
"<results"
|
||||
],
|
||||
[
|
||||
"meta.tag",
|
||||
">"
|
||||
]
|
||||
],
|
||||
[
|
||||
"[\"start\",\"StartTag\",\"TagContent\"]",
|
||||
[
|
||||
"text",
|
||||
" "
|
||||
],
|
||||
[
|
||||
"meta.tag",
|
||||
"<message"
|
||||
],
|
||||
[
|
||||
"meta.tag",
|
||||
">"
|
||||
],
|
||||
[
|
||||
"text",
|
||||
"{"
|
||||
],
|
||||
[
|
||||
"variable",
|
||||
"$message"
|
||||
],
|
||||
[
|
||||
"text",
|
||||
"}"
|
||||
],
|
||||
[
|
||||
"meta.tag",
|
||||
"</message>"
|
||||
]
|
||||
],
|
||||
[
|
||||
"[\"start\"]",
|
||||
[
|
||||
"meta.tag",
|
||||
"</results>"
|
||||
]
|
||||
],
|
||||
[
|
||||
"[\"start\"]"
|
||||
]
|
||||
]
|
||||
>>>>>>> .theirs
|
||||
"[\"start\"]"
|
||||
]]
|
||||
|
|
@ -52,6 +52,7 @@ start ::= '<![CDATA['
|
|||
| "]"
|
||||
| ","
|
||||
| "."
|
||||
| ";"
|
||||
| Annotation
|
||||
| ModuleDecl
|
||||
| OptionDecl
|
||||
|
|
|
|||
File diff suppressed because it is too large
Load diff
|
|
@ -40,7 +40,7 @@ define(function(require, exports, module) {
|
|||
return this.tokens;
|
||||
};
|
||||
|
||||
this.EQName = function(node)
|
||||
this.EQName = this.NCName = function(node)
|
||||
{
|
||||
var row = node.pos.sl;
|
||||
this.tokens[row] = this.tokens[row] === undefined ? [] : this.tokens[row];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue