File tree Expand file tree Collapse file tree 2 files changed +16
-2
lines changed
shell/Markdown.VT/ColorCode.VT/Parser Expand file tree Collapse file tree 2 files changed +16
-2
lines changed Original file line number Diff line number Diff line change @@ -24,6 +24,20 @@ public class Bash : ILanguage
2424 { 1 , BashCommentScope }
2525 } ) ,
2626
27+ new LanguageRule (
28+ @"'[^\n]*?'" ,
29+ new Dictionary < int , string >
30+ {
31+ { 0 , ScopeName . String }
32+ } ) ,
33+
34+ new LanguageRule (
35+ @"""[^\n]*?(?<!\\)""" ,
36+ new Dictionary < int , string >
37+ {
38+ { 0 , ScopeName . String }
39+ } ) ,
40+
2741 // match the first word of a line in a multi-line string as the command name.
2842 new LanguageRule (
2943 @"(?m)^\s*(\w+)" ,
Original file line number Diff line number Diff line change @@ -48,7 +48,7 @@ public IList<LanguageRule> Rules
4848 } ) ,
4949
5050 new LanguageRule (
51- @"'[^\n]*?(?<!\\) '" ,
51+ @"'[^\n]*?'" ,
5252 new Dictionary < int , string >
5353 {
5454 { 0 , ScopeName . String }
@@ -62,7 +62,7 @@ public IList<LanguageRule> Rules
6262 } ) ,
6363
6464 new LanguageRule (
65- @"(?s)( ""[^\n]*?(?<!`)"") " ,
65+ @"""[^\n]*?(?<!`)""" ,
6666 new Dictionary < int , string >
6767 {
6868 { 0 , ScopeName . String }
You can’t perform that action at this time.
0 commit comments