Update highlighter
This commit is contained in:
parent
84e3687e01
commit
d2163a7016
1 changed files with 4 additions and 4 deletions
|
|
@ -47,13 +47,13 @@ var C9SearchHighlightRules = function() {
|
||||||
// regexps are ordered -> the first match is used
|
// regexps are ordered -> the first match is used
|
||||||
this.$rules = {
|
this.$rules = {
|
||||||
"start" : [
|
"start" : [
|
||||||
|
{
|
||||||
|
token : ["constant.numeric", "text", "text"],
|
||||||
|
regex : "(^\\s+[0-9]+)(:\\s*)(.+)"
|
||||||
|
},
|
||||||
{
|
{
|
||||||
token : ["string", "text"], // single line
|
token : ["string", "text"], // single line
|
||||||
regex : "(.+)(:$)"
|
regex : "(.+)(:$)"
|
||||||
},
|
|
||||||
{
|
|
||||||
token : ["constant.numeric", "text"],
|
|
||||||
regex : "(^\\s*[0-9]+)(:\\s*)"
|
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue