Skip to content

Commit 9235cbf

Browse files
committed
Fix console syntax to only see prompts at the beginning of a line
A hash or dollar in the middle of a line is not a prompt.
1 parent d78a75d commit 9235cbf

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/theme/syntaxes/Console.sublime-syntax

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,13 @@ contexts:
1010
main:
1111
- include: comments
1212
comments:
13-
- match: "\\$"
13+
- match: "^\\$"
1414
scope: string.dollar-prompt.console
1515
push:
1616
- meta_scope: support.class.dollar-prompt.console
1717
- match: $\n?
1818
pop: true
19-
- match: "#"
19+
- match: "^#"
2020
scope: string.hash-prompt.console
2121
push:
2222
- meta_scope: support.class.hash-prompt.console

0 commit comments

Comments
 (0)