Update semantic highlighting.
This commit is contained in:
parent
b744549a7d
commit
b37daf7262
8 changed files with 22461 additions and 22161 deletions
File diff suppressed because it is too large
Load diff
File diff suppressed because it is too large
Load diff
|
|
@ -1,5 +1,5 @@
|
||||||
define(function(require, exports, module) {
|
define(function(require, exports, module) {
|
||||||
// $ANTLR 3.3 Nov 30, 2010 12:50:56 xquery/StringLexer.g 2012-04-18 21:05:08
|
// $ANTLR 3.3 Nov 30, 2010 12:50:56 xquery/StringLexer.g 2012-04-19 09:56:16
|
||||||
|
|
||||||
/* ***** BEGIN LICENSE BLOCK *****
|
/* ***** BEGIN LICENSE BLOCK *****
|
||||||
* Version: MPL 1.1/GPL 2.0/LGPL 2.1
|
* Version: MPL 1.1/GPL 2.0/LGPL 2.1
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
define(function(require, exports, module) {
|
define(function(require, exports, module) {
|
||||||
// $ANTLR 3.3 Nov 30, 2010 12:50:56 xquery/XMLLexer.g 2012-04-18 21:05:09
|
// $ANTLR 3.3 Nov 30, 2010 12:50:56 xquery/XMLLexer.g 2012-04-19 09:56:17
|
||||||
|
|
||||||
/* ***** BEGIN LICENSE BLOCK *****
|
/* ***** BEGIN LICENSE BLOCK *****
|
||||||
* Version: MPL 1.1/GPL 2.0/LGPL 2.1
|
* Version: MPL 1.1/GPL 2.0/LGPL 2.1
|
||||||
|
|
|
||||||
|
|
@ -46,7 +46,7 @@ org.antlr.lang.extend(XQDTLexer, org.antlr.runtime.Lexer, {
|
||||||
|
|
||||||
comments: [],
|
comments: [],
|
||||||
|
|
||||||
addComment: function(start, stop){ console.log("BOUH!"); },
|
addComment: function(start, stop){ },
|
||||||
|
|
||||||
isWsExplicit: false,
|
isWsExplicit: false,
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
define(function(require, exports, module) {
|
define(function(require, exports, module) {
|
||||||
// $ANTLR 3.3 Nov 30, 2010 12:50:56 xquery/XQueryLexer.g 2012-04-18 21:05:06
|
// $ANTLR 3.3 Nov 30, 2010 12:50:56 xquery/XQueryLexer.g 2012-04-19 09:56:14
|
||||||
|
|
||||||
/* ***** BEGIN LICENSE BLOCK *****
|
/* ***** BEGIN LICENSE BLOCK *****
|
||||||
* Version: MPL 1.1/GPL 2.0/LGPL 2.1
|
* Version: MPL 1.1/GPL 2.0/LGPL 2.1
|
||||||
|
|
|
||||||
File diff suppressed because it is too large
Load diff
|
|
@ -73,7 +73,7 @@ define(function(require, exports, module){
|
||||||
value: value
|
value: value
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
console.log(lineTokens);
|
|
||||||
var nextState = "start";
|
var nextState = "start";
|
||||||
if(lineTokens.length > 0) {
|
if(lineTokens.length > 0) {
|
||||||
lineTokens[lineTokens.length - 1].type;
|
lineTokens[lineTokens.length - 1].type;
|
||||||
|
|
@ -89,11 +89,9 @@ define(function(require, exports, module){
|
||||||
tokenizedLine += value;
|
tokenizedLine += value;
|
||||||
}
|
}
|
||||||
//Check if the tokenized line is equal to the original one:
|
//Check if the tokenized line is equal to the original one:
|
||||||
if(sourceLine == tokenizedLine)
|
if(sourceLine == tokenizedLine) {
|
||||||
result[i] = { line: sourceLine, startState: previousState, tokens: { tokens: lineTokens, state: nextState } };
|
result[i] = { line: sourceLine, startState: previousState, tokens: { tokens: lineTokens, state: nextState } };
|
||||||
else {
|
} else {
|
||||||
console.log(sourceLine);
|
|
||||||
console.log(tokenizedLine);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return result;
|
return result;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue