Skip to content

Commit d435371

Browse files
committed
do not match #= in code section
fix #112
1 parent 054fc4a commit d435371

File tree

2 files changed

+12
-1
lines changed

2 files changed

+12
-1
lines changed

Julia.sublime-syntax

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ contexts:
9696
# pop: true
9797

9898
codesection:
99-
- match: ^\s*((\#+)\s*(.+?)\s*(?:-{4,}|={4,}|#{4,})[ \t]*$\n?)
99+
- match: ^\s*((\#+(?!==))\s*(.+?)\s*(?:-{4,}|={4,}|#{4,})[ \t]*$\n?)
100100
captures:
101101
1: comment.line.number-sign.julia
102102
2: punctuation.definition.comment.julia

syntax_test_julia.jl

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,17 @@
1010
=#
1111
# <- comment.block.number-equal-sign punctuation.definition.comment.number-equal-sign
1212

13+
14+
# Code section ####
15+
# ^^^^^^^^^^^^ comment.line.number-sign.julia entity.name.section.julia
16+
# Code section ====
17+
# ^^^^^^^^^^^^ comment.line.number-sign.julia entity.name.section.julia
18+
# = ====
19+
# ^ comment.line.number-sign.julia entity.name.section.julia
20+
#=====
21+
#^ -comment.line.number-sign.julia entity.name.section.julia
22+
=====#
23+
1324
##
1425
## NUMBERS ====
1526
##

0 commit comments

Comments
 (0)