Skip to content

Commit 85bcb02

Browse files
committed
Fixed bug with previous commit and added test
1 parent 0e1ec62 commit 85bcb02

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

AngelScript.sublime-syntax

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -422,6 +422,7 @@ contexts:
422422
- match: '\s*(&(in|out|inout)?)'
423423
captures:
424424
1: keyword.other
425+
pop: true
425426
- match: '@'
426427
scope: keyword.other
427428
- match: '<'

syntax_test_stuff.as

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,17 @@ void func2(const string &in str, SValue& sval) {}
5353
// ^ keyword.other
5454
// ^^^^ variable.parameter
5555

56+
void Load(WidgetLoadingContext &ctx) {}
57+
// <- storage.type
58+
// ^^^^ meta.function entity.name.function
59+
// ^ punctuation.section.params.begin
60+
// ^^^^^^^^^^^^^^^^^^^^ storage.type
61+
// ^ keyword.other
62+
// ^^^ variable.parameter
63+
// ^ punctuation.section.params.end
64+
// ^ punctuation.section.block.begin
65+
// ^ punctuation.section.block.end
66+
5667
interface IThing
5768
// <- meta.interface storage.type.interface
5869
// ^^^^^^ entity.name.interface

0 commit comments

Comments
 (0)