Skip to content

Commit 284f5ea

Browse files
committed
add word boundary to macros
fix #110
1 parent d435371 commit 284f5ea

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

Julia.sublime-syntax

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -349,12 +349,12 @@ contexts:
349349
- include: main
350350

351351
macros:
352-
- match: '(@)({{base_macros}}|\.)'
352+
- match: '(@)({{base_macros}}|\.)\b'
353353
scope: meta.function-call.macro.julia
354354
captures:
355355
1: punctuation.definition.macro.julia
356356
2: variable.macro.julia support.function.macro.julia
357-
- match: '(@)({{symb_id}})'
357+
- match: '(@)({{symb_id}})\b'
358358
scope: meta.function-call.macro.julia
359359
captures:
360360
1: punctuation.definition.macro.julia

syntax_test_julia.jl

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -506,6 +506,11 @@
506506
# ^ punctuation.definition.macro.julia
507507
# ^^^ variable.macro.julia meta.generic-name.julia
508508

509+
@timecustom
510+
#^^^^^^^^^^ -support.function.macro.julia
511+
@time
512+
#^^^^ support.function.macro.julia
513+
509514
##
510515
## Quotes ====
511516
##

0 commit comments

Comments
 (0)