Add implements and signature to syntax highlighting
This commit is contained in:
@@ -564,6 +564,11 @@ repository:
|
|||||||
keyword: 'query'
|
keyword: 'query'
|
||||||
name: storage.modifier.query.ql
|
name: storage.modifier.query.ql
|
||||||
|
|
||||||
|
signature:
|
||||||
|
match:
|
||||||
|
keyword: 'signature'
|
||||||
|
name: storage.modifier.signature.ql
|
||||||
|
|
||||||
transient:
|
transient:
|
||||||
match:
|
match:
|
||||||
keyword: 'transient'
|
keyword: 'transient'
|
||||||
@@ -583,8 +588,14 @@ repository:
|
|||||||
- include: '#pragma'
|
- include: '#pragma'
|
||||||
- include: '#private'
|
- include: '#private'
|
||||||
- include: '#query'
|
- include: '#query'
|
||||||
|
- include: '#signature'
|
||||||
- include: '#transient'
|
- include: '#transient'
|
||||||
|
|
||||||
|
implements:
|
||||||
|
match:
|
||||||
|
keyword: 'implements'
|
||||||
|
name: keyword.other.implements.ql
|
||||||
|
|
||||||
# A QL comment, regardless of form.
|
# A QL comment, regardless of form.
|
||||||
comment:
|
comment:
|
||||||
patterns:
|
patterns:
|
||||||
@@ -668,6 +679,19 @@ repository:
|
|||||||
- match: '(?#simple-id)'
|
- match: '(?#simple-id)'
|
||||||
name: entity.name.type.namespace.ql
|
name: entity.name.type.namespace.ql
|
||||||
|
|
||||||
|
# The `extends` clause of a class definition.
|
||||||
|
implements-clause:
|
||||||
|
beginPattern: '#implements'
|
||||||
|
# Ends at the first `{`.
|
||||||
|
# REVIEW: This could be any token not allowed in a type.
|
||||||
|
end: '(?= \{ )'
|
||||||
|
name: meta.block.implements-clause.ql
|
||||||
|
patterns:
|
||||||
|
- include: '#non-context-sensitive'
|
||||||
|
- match: '(?#simple-id)|(?#at-lower-id)'
|
||||||
|
name: entity.name.type.ql
|
||||||
|
|
||||||
|
|
||||||
# A `module` declaration, whether a module definition or an alias declaration.
|
# A `module` declaration, whether a module definition or an alias declaration.
|
||||||
module-declaration:
|
module-declaration:
|
||||||
# Starts with the `module` keyword.
|
# Starts with the `module` keyword.
|
||||||
@@ -677,6 +701,7 @@ repository:
|
|||||||
name: meta.block.module-declaration.ql
|
name: meta.block.module-declaration.ql
|
||||||
patterns:
|
patterns:
|
||||||
- include: '#module-body'
|
- include: '#module-body'
|
||||||
|
- include: '#implements-clause'
|
||||||
- include: '#non-context-sensitive'
|
- include: '#non-context-sensitive'
|
||||||
# Any simple-id within a module head is part of a module name.
|
# Any simple-id within a module head is part of a module name.
|
||||||
- match: '(?#simple-id)'
|
- match: '(?#simple-id)'
|
||||||
|
|||||||
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user