Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CoffeeScript.sublime-syntax
Original file line number Diff line number Diff line change
Expand Up @@ -911,6 +911,7 @@ contexts:
- member-function
- member-variable
pop: 1
- include: immediately-pop

member-function:
- meta_include_prototype: false
Expand Down
58 changes: 48 additions & 10 deletions tests/syntax_test_scope.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -562,10 +562,19 @@ class
# ^ meta.function-call.identifier.coffee variable.function.coffee
# ^^^^ meta.function-call.arguments.coffee

@name()
@name(@, obj.obj.)
# ^ variable.language.this.coffee
# ^^^^ meta.function-call.identifier.coffee variable.function.coffee
# ^^ meta.function-call.arguments.coffee
# ^^^^^^^^^^^^^ meta.function-call.arguments.coffee
# ^ punctuation.section.group.begin.coffee
# ^ variable.language.this.coffee
# ^ punctuation.separator.sequence.coffee
# ^^^^^^^^ meta.path.coffee
# ^^^ variable.other.object.coffee
# ^ punctuation.accessor.dot.coffee
# ^^^ variable.other.object.coffee
# ^ punctuation.accessor.dot.coffee
# ^ punctuation.section.group.end.coffee

@$('#notification')
# ^ variable.language.this.coffee
Expand All @@ -581,19 +590,48 @@ class
super.key
# ^^^^^^^^^ meta.path.coffee
# ^^^^^ variable.language.super.coffee
# ^ meta.path.coffee punctuation.accessor.dot.coffee
# ^^^ meta.path.coffee variable.other.member.coffee
# ^ punctuation.accessor.dot.coffee
# ^^^ variable.other.member.coffee
# ^ - meta

this.member
# ^^^^^^^^^^^ meta.path.coffee
# ^^^^ variable.language.this.coffee
# ^ punctuation.accessor.dot.coffee
# ^^^^^^ variable.other.member.coffee
# ^ - meta

this.key
# ^^^^^^^^ meta.path.coffee
this.obj.member
# ^^^^^^^^^^^^^^^ meta.path.coffee
# ^^^^ variable.language.this.coffee
# ^ meta.path.coffee punctuation.accessor.dot.coffee
# ^^^ meta.path.coffee variable.other.member.coffee
# ^ punctuation.accessor.dot.coffee
# ^^^ variable.other.object.coffee
# ^ punctuation.accessor.dot.coffee
# ^^^^^^ variable.other.member.coffee
# ^ - meta

@member
# ^^^^^^^ meta.path.coffee
# ^ variable.language.this.coffee
# ^^^^^^ variable.other.member.coffee
# ^ - meta

@key
@obj.member
# ^^^^ meta.path.coffee
# ^ variable.language.this.coffee
# ^^^ variable.other.member.coffee
# ^^^ variable.other.object.coffee
# ^ punctuation.accessor.dot.coffee
# ^^^^^^ variable.other.member.coffee
# ^ - meta

@obj.obj.
# ^^^^^^^^^ meta.path.coffee
# ^ variable.language.this.coffee
# ^^^ variable.other.object.coffee
# ^ punctuation.accessor.dot.coffee
# ^^^ variable.other.object.coffee
# ^ punctuation.accessor.dot.coffee
# ^ - meta

obj.Object
# ^^^^^^^^^^ meta.path.coffee
Expand Down