Fixed keywords and constant parse bug

Fixed: 'minus' shouldn't be a delimiter
Fixed: '\t' shouldn't be included in keword-type
This commit is contained in:
Nala Ginrut 2013-02-03 21:57:54 +08:00
commit 05d65dac6a

View file

@ -68,7 +68,7 @@ var SchemeHighlightRules = function() {
},
{
"token": ["punctuation.definition.constant.character.scheme", "constant.character.scheme"],
"regex": "#:[^ ]+"
"regex": "#:\\S+"
},
{
"token": ["punctuation.definition.variable.scheme", "variable.other.global.scheme", "punctuation.definition.variable.scheme"],
@ -84,7 +84,7 @@ var SchemeHighlightRules = function() {
},
{
"token" : keywordMapper,
"regex" : "[a-zA-Z_#][a-zA-Z0-9_\\?\\!\\*]*"
"regex" : "[a-zA-Z_#][a-zA-Z0-9_\\-\\?\\!\\*]*"
},
{
"token" : "string",