Skip to content

Commit 002d57f

Browse files
committed
Make sure there is at least one space after struct
fix #116
1 parent 1e55f32 commit 002d57f

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Julia.sublime-syntax

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -522,28 +522,28 @@ contexts:
522522
- include: main
523523

524524
struct-declarations:
525-
- match: \b(struct)\s*({{symb_id}})
525+
- match: \b(struct)\s+({{symb_id}})
526526
scope: meta.struct.julia
527527
captures:
528528
1: storage.type.struct.julia keyword.declaration.struct.julia
529529
2: entity.name.struct.julia
530530
push: struct-body
531531

532-
- match: \b(mutable struct)\s*({{symb_id}})
532+
- match: \b(mutable struct)\s+({{symb_id}})
533533
scope: meta.struct.mutable.julia
534534
captures:
535535
1: storage.type.struct.mutable.julia keyword.declaration.struct.mutable.julia
536536
2: entity.name.struct.mutable.julia
537537
push: struct-body
538538

539-
- match: \b(abstract type)\s*({{symb_id}})
539+
- match: \b(abstract type)\s+({{symb_id}})
540540
scope: meta.type.abstract.julia
541541
captures:
542542
1: storage.type.type.abstract.julia keyword.declaration.type.abstract.julia
543543
2: entity.name.type.abstract.julia
544544
push: struct-body
545545

546-
- match: \b(primitive type)\s*({{symb_id}})
546+
- match: \b(primitive type)\s+({{symb_id}})
547547
scope: meta.type.primitive.julia
548548
captures:
549549
1: storage.type.type.primitive.julia keyword.declaration.type.primitive.julia

0 commit comments

Comments
 (0)