Some fixes in javascript highlighter.
[GB.HIGHLIGHT] * BUG: Some fixes in javascript highlighter.
This commit is contained in:
parent
3b9b1d8bfd
commit
f3618751d8
3 changed files with 16 additions and 8 deletions
|
@ -4,8 +4,8 @@ Public Sub Main()
|
||||||
|
|
||||||
Dim hTextHighlighter As TextHighlighter
|
Dim hTextHighlighter As TextHighlighter
|
||||||
|
|
||||||
hTextHighlighter = TextHighlighter.FromFile("./highlight/html.highlight")
|
hTextHighlighter = TextHighlighter.FromFile("./highlight/javascript.highlight")
|
||||||
|
|
||||||
File.Save("~/test.html", hTextHighlighter.ToHTML(File.Load("custom/page.html")))
|
File.Save("~/test.html", hTextHighlighter.ToHTML(File.Load("custom/selectr.js")))
|
||||||
|
|
||||||
End
|
End
|
||||||
|
|
|
@ -17,7 +17,7 @@
|
||||||
}(this, function(plugin) {
|
}(this, function(plugin) {
|
||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
console.log(`this is a {plugin} plugin.`);
|
console.log(`this \x2B \u0640 is a {plugin} plugin.\n`);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Event Emitter
|
* Event Emitter
|
||||||
|
|
|
@ -7,17 +7,25 @@ string:
|
||||||
from " to "
|
from " to "
|
||||||
from ' to '
|
from ' to '
|
||||||
escape:
|
escape:
|
||||||
match \\[ntrbf0'"\\]
|
match \\[fnrtv0'"\\]
|
||||||
|
match \\c[A-Za-z]
|
||||||
|
match \\x[0-9a-fA-F]{2}
|
||||||
|
match \\u[0-9a-fA-F]{4}
|
||||||
|
match \\u{[0-9a-fA-F]+}
|
||||||
sstring{String}:
|
sstring{String}:
|
||||||
from ` to `
|
from ` to `
|
||||||
escape:
|
escape:
|
||||||
match \\[ntrbf0'"{\\]
|
match \\[fnrtv0'"\\]
|
||||||
|
match \\c[A-Za-z]
|
||||||
|
match \\x[0-9a-fA-F]{2}
|
||||||
|
match \\u[0-9a-fA-F]{4}
|
||||||
|
match \\u{[0-9a-fA-F]+}
|
||||||
subst{Preprocessor}:
|
subst{Preprocessor}:
|
||||||
between { }
|
between { }
|
||||||
regexp{Datatype}:
|
regexp{Datatype}:
|
||||||
match /.*/[a-z]*
|
match /.*?/[a-z]*
|
||||||
escape:
|
regexp.escape{Escape}:
|
||||||
match \\?
|
match \\.
|
||||||
number:
|
number:
|
||||||
match [+-]?[0-9.]*
|
match [+-]?[0-9.]*
|
||||||
match 0x[0-9a-fA-F]*
|
match 0x[0-9a-fA-F]*
|
||||||
|
|
Loading…
Reference in a new issue