Fix sh highlighting
This commit is contained in:
parent
1bcfc979dd
commit
ab09f5e38f
2 changed files with 4 additions and 1 deletions
|
|
@ -30,6 +30,9 @@ get_repo() {
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
x=(1 2 3)
|
||||||
|
echo ${#x[@]}
|
||||||
|
|
||||||
if repo=`get_repo $@`; then
|
if repo=`get_repo $@`; then
|
||||||
branch=`git symbolic-ref HEAD 2>/dev/null`
|
branch=`git symbolic-ref HEAD 2>/dev/null`
|
||||||
echo "http://github.com/$repo/pull/new/${branch##refs/heads/}"
|
echo "http://github.com/$repo/pull/new/${branch##refs/heads/}"
|
||||||
|
|
|
||||||
|
|
@ -79,7 +79,7 @@ var ShHighlightRules = function() {
|
||||||
this.$rules = {
|
this.$rules = {
|
||||||
"start" : [ {
|
"start" : [ {
|
||||||
token : "comment",
|
token : "comment",
|
||||||
regex : "#.*$"
|
regex : "[^\{]#.*$"
|
||||||
}, {
|
}, {
|
||||||
token : "string", // " string
|
token : "string", // " string
|
||||||
regex : '"(?:[^\\\\]|\\\\.)*?"'
|
regex : '"(?:[^\\\\]|\\\\.)*?"'
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue