Skip to content

Commit 2f40550

Browse files
committed
Fixed missing meta.function scope on function definition name
1 parent ffc2ed2 commit 2f40550

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

AngelScript.sublime-syntax

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -472,6 +472,7 @@ contexts:
472472

473473
function-definition:
474474
- include: global
475+
- meta_scope: meta.function
475476
- match: '{{identifier}}'
476477
scope: entity.name.function
477478
- include: function-definition-params

syntax_test_stuff.as

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424

2525
void func2(const string &in str, SValue& sval) {}
2626
// <- storage.type
27-
// ^^^^^ entity.name.function
27+
// ^^^^^ meta.function entity.name.function
2828
// ^^^^^ storage.modifier
2929
// ^^^^^^ storage.type
3030
// ^^^ keyword.other

0 commit comments

Comments
 (0)