Add support for file descriptors
This commit is contained in:
parent
19a5af9fe3
commit
75b4948451
1 changed files with 4 additions and 0 deletions
|
|
@ -71,6 +71,7 @@ var ShHighlightRules = function() {
|
|||
var pointFloat = "(?:(?:" + intPart + "?" + fraction + ")|(?:" + intPart + "\\.))";
|
||||
var exponentFloat = "(?:(?:" + pointFloat + "|" + intPart + ")" + ")";
|
||||
var floatNumber = "(?:" + exponentFloat + "|" + pointFloat + ")";
|
||||
var fileDescriptor = "(?:&" + intPart + ")";
|
||||
|
||||
this.$rules = {
|
||||
"start" : [ {
|
||||
|
|
@ -79,6 +80,9 @@ var ShHighlightRules = function() {
|
|||
}, {
|
||||
token : "string", // " string
|
||||
regex : '"(?:[^\\\\]|\\\\.)*?"'
|
||||
}, {
|
||||
token : "support.function",
|
||||
regex : fileDescriptor
|
||||
}, {
|
||||
token : "string", // ' string
|
||||
regex : "'(?:[^\\\\]|\\\\.)*?'"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue