This commit is contained in:
Garen Torikian 2013-02-06 12:43:38 -08:00
commit 90964745bf
2 changed files with 2 additions and 3 deletions

View file

@ -30,7 +30,6 @@ get_repo() {
fi fi
} }
x=(1 2 3)
echo ${#x[@]} echo ${#x[@]}
if repo=`get_repo $@`; then if repo=`get_repo $@`; then

View file

@ -78,8 +78,8 @@ var ShHighlightRules = function() {
this.$rules = { this.$rules = {
"start" : [ { "start" : [ {
token : "comment", token : ["comment"],
regex : "[^\{]#.*$" regex : /(?:^|\s)(#.*$)/
}, { }, {
token : "string", // " string token : "string", // " string
regex : '"(?:[^\\\\]|\\\\.)*?"' regex : '"(?:[^\\\\]|\\\\.)*?"'