Fix sh highlighting

This commit is contained in:
Garen Torikian 2013-02-04 16:55:03 -08:00
commit ab09f5e38f
2 changed files with 4 additions and 1 deletions

View file

@ -30,6 +30,9 @@ get_repo() {
fi
}
x=(1 2 3)
echo ${#x[@]}
if repo=`get_repo $@`; then
branch=`git symbolic-ref HEAD 2>/dev/null`
echo "http://github.com/$repo/pull/new/${branch##refs/heads/}"

View file

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