revert to old string regex
This commit is contained in:
parent
32191f128b
commit
f4613206be
2 changed files with 20 additions and 30 deletions
|
|
@ -308,9 +308,9 @@
|
|||
["constant.language.integer.lsl","PUBLIC_CHANNEL"],
|
||||
["punctuation.operator.lsl",","],
|
||||
["text.lsl"," "],
|
||||
["string.quoted.double.begin.lsl","\""],
|
||||
["string.quoted.double.lsl.start","\""],
|
||||
["string.quoted.double.lsl","Hello, Avatar!"],
|
||||
["string.quoted.double.end.lsl","\""],
|
||||
["string.quoted.double.lsl.end","\""],
|
||||
["paren.rparen.lsl",")"],
|
||||
["punctuation.operator.lsl",";"]
|
||||
],[
|
||||
|
|
@ -403,9 +403,9 @@
|
|||
["text.lsl"," "],
|
||||
["reserved.godmode.lsl","llSetInventoryPermMask"],
|
||||
["paren.lparen.lsl","("],
|
||||
["string.quoted.double.begin.lsl","\""],
|
||||
["string.quoted.double.lsl.start","\""],
|
||||
["string.quoted.double.lsl","some item"],
|
||||
["string.quoted.double.end.lsl","\""],
|
||||
["string.quoted.double.lsl.end","\""],
|
||||
["punctuation.operator.lsl",","],
|
||||
["text.lsl"," "],
|
||||
["constant.language.integer.lsl","MASK_NEXT"],
|
||||
|
|
@ -426,13 +426,13 @@
|
|||
["constant.language.integer.lsl","PUBLIC_CHANNEL"],
|
||||
["punctuation.operator.lsl",","],
|
||||
["text.lsl"," "],
|
||||
["string.quoted.double.begin.lsl","\""],
|
||||
["string.quoted.double.lsl.start","\""],
|
||||
["string.quoted.double.lsl","Leaving "],
|
||||
["constant.character.escape.lsl","\\\""],
|
||||
["string.quoted.double.lsl","default"],
|
||||
["constant.character.escape.lsl","\\\""],
|
||||
["string.quoted.double.lsl"," now..."],
|
||||
["string.quoted.double.end.lsl","\""],
|
||||
["string.quoted.double.lsl.end","\""],
|
||||
["paren.rparen.lsl",")"],
|
||||
["punctuation.operator.lsl",";"]
|
||||
],[
|
||||
|
|
@ -473,7 +473,7 @@
|
|||
["constant.language.integer.lsl","PUBLIC_CHANNEL"],
|
||||
["punctuation.operator.lsl",","],
|
||||
["text.lsl"," "],
|
||||
["string.quoted.double.begin.lsl","\""],
|
||||
["string.quoted.double.lsl.start","\""],
|
||||
["string.quoted.double.lsl","Entered "],
|
||||
["constant.character.escape.lsl","\\\""],
|
||||
["string.quoted.double.lsl","state other"],
|
||||
|
|
@ -483,7 +483,7 @@
|
|||
["string.quoted.double.lsl","default"],
|
||||
["constant.character.escape.lsl","\\\""],
|
||||
["string.quoted.double.lsl"," again..."],
|
||||
["string.quoted.double.end.lsl","\""],
|
||||
["string.quoted.double.lsl.end","\""],
|
||||
["paren.rparen.lsl",")"],
|
||||
["punctuation.operator.lsl",";"]
|
||||
],[
|
||||
|
|
|
|||
|
|
@ -66,9 +66,18 @@ function LSLHighlightRules() {
|
|||
regex : "\\/\\*",
|
||||
next : "comment"
|
||||
}, {
|
||||
token : "string.quoted.double.begin.lsl",
|
||||
regex : '"',
|
||||
next : "string"
|
||||
token : "string.quoted.double.lsl",
|
||||
start : '"',
|
||||
end : '"',
|
||||
next : [
|
||||
{
|
||||
token : "constant.language.escape.lsl",
|
||||
regex : /\\[tn"\\]/
|
||||
}, {
|
||||
token : "invalid.illegal.constant.character.escape.lsl",
|
||||
regex : "\\."
|
||||
}
|
||||
]
|
||||
}, {
|
||||
token : "constant.numeric.lsl",
|
||||
regex : "(0[xX][0-9a-fA-F]+|[+-]?[0-9]+(?:(?:\\.[0-9]*)?(?:[eE][+-]?[0-9]+)?)?)\\b"
|
||||
|
|
@ -110,25 +119,6 @@ function LSLHighlightRules() {
|
|||
token : "comment.block.lsl",
|
||||
regex : ".+"
|
||||
}
|
||||
],
|
||||
"string" : [
|
||||
{
|
||||
token : "constant.character.escape.lsl",
|
||||
regex : /\\[tn"\\]/
|
||||
},
|
||||
{
|
||||
token : "invalid.illegal.constant.character.escape.lsl",
|
||||
regex : "\\."
|
||||
},
|
||||
{
|
||||
token : "string.quoted.double.end.lsl",
|
||||
regex : /"/,
|
||||
next : "start"
|
||||
},
|
||||
{
|
||||
token : "string.quoted.double.lsl",
|
||||
regex : ".+"
|
||||
}
|
||||
]
|
||||
};
|
||||
this.normalizeRules();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue