Hilight function definitions
This commit is contained in:
parent
99702e7505
commit
66287085fd
1 changed files with 5 additions and 0 deletions
|
|
@ -73,6 +73,8 @@ var ShHighlightRules = function() {
|
||||||
|
|
||||||
var builtinVariable = "(?:\\$(?:SHLVL|\\$|\\!|\\?))";
|
var builtinVariable = "(?:\\$(?:SHLVL|\\$|\\!|\\?))";
|
||||||
|
|
||||||
|
var func = "(?:" + variableName + "\\s*\\(\\))";
|
||||||
|
|
||||||
this.$rules = {
|
this.$rules = {
|
||||||
"start" : [ {
|
"start" : [ {
|
||||||
token : "comment",
|
token : "comment",
|
||||||
|
|
@ -86,6 +88,9 @@ var ShHighlightRules = function() {
|
||||||
}, {
|
}, {
|
||||||
token : "variable",
|
token : "variable",
|
||||||
regex : variable
|
regex : variable
|
||||||
|
}, {
|
||||||
|
token : "support.function",
|
||||||
|
regex : func,
|
||||||
}, {
|
}, {
|
||||||
token : "support.function",
|
token : "support.function",
|
||||||
regex : fileDescriptor
|
regex : fileDescriptor
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue