Skip to content

Commit

Permalink
Function scope-pop fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Resike committed Jun 25, 2018
1 parent 2b9ac6b commit f13a8ef
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions WoW Lua.sublime-syntax
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,7 @@ contexts:
- match: \b{{valid_identifier}}\b
scope: entity.name.function.lua
set: function-arguments
- include: else-pop

function-name-valid:
- match: \(
Expand Down Expand Up @@ -159,12 +160,14 @@ contexts:
set:
- function-arguments-end
- function-parameters
- include: else-pop

function-arguments-end:
- meta_scope: meta.function.body.lua
- match: \)
scope: punctuation.section.group.end.lua
set: function-block
- include: else-pop

function-block:
- meta_content_scope: meta.function.body.lua
Expand Down
3 changes: 3 additions & 0 deletions WoW XML.sublime-syntax
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,7 @@ contexts:
- match: \b{{valid_identifier}}\b
scope: entity.name.function.lua
set: function-arguments
- include: else-pop

function-name-valid:
- match: \(
Expand Down Expand Up @@ -159,12 +160,14 @@ contexts:
set:
- function-arguments-end
- function-parameters
- include: else-pop

function-arguments-end:
- meta_scope: meta.function.body.lua
- match: \)
scope: punctuation.section.group.end.lua
set: function-block
- include: else-pop

function-block:
- meta_content_scope: meta.function.body.lua
Expand Down

0 comments on commit f13a8ef

Please sign in to comment.