Commit acb20cac authored by neyfag's avatar neyfag

sh.lang: Avoid item recognition in "case … esac" statements

parent ef4ac8c1
......@@ -481,11 +481,6 @@
<include>
<context sub-pattern="0" where="start" style-ref="keyword"/>
<context sub-pattern="0" where="end" style-ref="keyword"/>
<context ref="variable-definition"/>
<define-regex id="slitem">([^)'"\s]|\\['"])+</define-regex>
<context style-ref="others">
<match>^\s*\%{slitem}?('[^)]+'|"[^)]+")?\%{slitem}?\s*\)|;;</match>
</context>
<context ref="sh"/>
</include>
</context>
......
......@@ -29,15 +29,3 @@ xxx${x#$HOME}xxx
xxx${x##*/}xxx
xxx${x#*}xxx
xxx${x#"*"}xxx
# Case statements
case $item in
[1-6]*)
;;
9[1-8])
;;
')')
;;
*)
;;
esac
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment