Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Hilight function definitions

  • Loading branch information...
commit 66287085fd7da434b2e4a07adbe6d8364fe70f51 1 parent 99702e7
@richo richo authored
Showing with 5 additions and 0 deletions.
  1. +5 −0 lib/ace/mode/sh_highlight_rules.js
View
5 lib/ace/mode/sh_highlight_rules.js
@@ -73,6 +73,8 @@ var ShHighlightRules = function() {
var builtinVariable = "(?:\\$(?:SHLVL|\\$|\\!|\\?))";
+ var func = "(?:" + variableName + "\\s*\\(\\))";
+
this.$rules = {
"start" : [ {
token : "comment",
@@ -88,6 +90,9 @@ var ShHighlightRules = function() {
regex : variable
}, {
token : "support.function",
+ regex : func,
+ }, {
+ token : "support.function",
regex : fileDescriptor
}, {
token : "string", // ' string
Please sign in to comment.
Something went wrong with that request. Please try again.