mirror of
https://github.com/awatson1978/meteor-api.git
synced 2026-05-15 14:15:54 -06:00
Uncomment function pattern matching
This commit is contained in:
parent
66b4f36ccd
commit
baec5de598
1 changed files with 23 additions and 23 deletions
|
|
@ -152,29 +152,29 @@
|
|||
}
|
||||
]
|
||||
}
|
||||
# {
|
||||
# 'begin': '\\b(function\\*?)\\s*((\\*)|(\\*?[a-zA-Z_$]\\w*))?\\s*(\\()'
|
||||
# 'beginCaptures':
|
||||
# '1':
|
||||
# 'name': 'storage.type.function.js'
|
||||
# '3':
|
||||
# 'name': 'storage.type.function.js'
|
||||
# '4':
|
||||
# 'name': 'entity.name.function.js'
|
||||
# '5':
|
||||
# 'name': 'punctuation.definition.parameters.begin.js'
|
||||
# 'comment': 'match regular function like: function myFunc(arg) { … }'
|
||||
# 'end': '(\\))'
|
||||
# 'endCaptures':
|
||||
# '1':
|
||||
# 'name': 'punctuation.definition.parameters.end.js'
|
||||
# 'name': 'meta.function.js'
|
||||
# 'patterns': [
|
||||
# {
|
||||
# 'include': '#function-params'
|
||||
# }
|
||||
# ]
|
||||
# }
|
||||
{
|
||||
'begin': '\\b(function\\*?)\\s*((\\*)|(\\*?[a-zA-Z_$]\\w*))?\\s*(\\()'
|
||||
'beginCaptures':
|
||||
'1':
|
||||
'name': 'storage.type.function.js'
|
||||
'3':
|
||||
'name': 'storage.type.function.js'
|
||||
'4':
|
||||
'name': 'entity.name.function.js'
|
||||
'5':
|
||||
'name': 'punctuation.definition.parameters.begin.js'
|
||||
'comment': 'match regular function like: function myFunc(arg) { … }'
|
||||
'end': '(\\))'
|
||||
'endCaptures':
|
||||
'1':
|
||||
'name': 'punctuation.definition.parameters.end.js'
|
||||
'name': 'meta.function.js'
|
||||
'patterns': [
|
||||
{
|
||||
'include': '#function-params'
|
||||
}
|
||||
]
|
||||
}
|
||||
{
|
||||
'begin': '\\b([a-zA-Z_?.$][\\w?.$]*)\\s*:\\s*\\b(function\\*?)?\\s*(\\*?)(\\()'
|
||||
'beginCaptures':
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue