Merge pull request #734 from richoH/features/sh/1
Update builtin definitions
This commit is contained in:
commit
4905bd45c4
1 changed files with 12 additions and 4 deletions
|
|
@ -20,6 +20,8 @@
|
||||||
*
|
*
|
||||||
* Contributor(s):
|
* Contributor(s):
|
||||||
* Rich Healey <richo AT psych0tik DOT net>
|
* Rich Healey <richo AT psych0tik DOT net>
|
||||||
|
* Javier Perez-Griffo <javier AT besol DOT es>
|
||||||
|
* James Tan <jamestyj AT gmail DOT com>
|
||||||
*
|
*
|
||||||
* Alternatively, the contents of this file may be used under the terms of
|
* Alternatively, the contents of this file may be used under the terms of
|
||||||
* either the GNU General Public License Version 2 or later (the "GPL"), or
|
* either the GNU General Public License Version 2 or later (the "GPL"), or
|
||||||
|
|
@ -47,14 +49,20 @@ var ShHighlightRules = function() {
|
||||||
var reservedKeywords = lang.arrayToMap(
|
var reservedKeywords = lang.arrayToMap(
|
||||||
('!|{|}|case|do|done|elif|else|'+
|
('!|{|}|case|do|done|elif|else|'+
|
||||||
'esac|fi|for|if|in|then|until|while|'+
|
'esac|fi|for|if|in|then|until|while|'+
|
||||||
'&|;'
|
'&|;|export|local|read|typeset|unset|'+
|
||||||
|
'elif|select|set'
|
||||||
).split('|')
|
).split('|')
|
||||||
);
|
);
|
||||||
|
|
||||||
var languageConstructs = lang.arrayToMap(
|
var languageConstructs = lang.arrayToMap(
|
||||||
// TODO
|
('[|]|alias|bg|bind|break|builtin|'+
|
||||||
('echo|exit|eval|source|[|]|test|'+
|
'cd|command|compgen|complete|continue|'+
|
||||||
'true|false|read'
|
'dirs|disown|echo|enable|eval|exec|'+
|
||||||
|
'exit|fc|fg|getopts|hash|help|history|'+
|
||||||
|
'jobs|kill|let|logout|popd|printf|pushd|'+
|
||||||
|
'pwd|return|set|shift|shopt|source|'+
|
||||||
|
'suspend|test|times|trap|type|ulimit|'+
|
||||||
|
'umask|unalias|wait'
|
||||||
).split('|')
|
).split('|')
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue