fileTypes: ['api']
uuid: fc8dc5cf-b7aa-4b64-a665-80e8dc1b2553
patterns:
- - begin: '^([a-zA-Z0-9_.]+)'
+ - begin: '([a-zA-Z0-9_.]+)'
end: '\n'
name: constant.language
patterns:
- include: '#dataTypes'
- include: '#comment'
- - begin: '[ \t]*'
+ - begin: '^//.*'
+ end: '\n'
+ name: 'comment.line'
+ - begin: '[ \t]+'
end: '\n'
patterns:
- include: '#apiMember'
- include: '#comment'
repository:
dataTypes:
- begin: '\\<'
- end: '\\>'
+ begin: '\<'
+ end: '\>'
name: 'keyword.operator'
patterns:
- include: '#dataType'
- include: '#separators'
parameterList:
- begin: '\\('
- end: '\\)'
+ begin: '\('
+ end: '\)'
name: 'keyword.operator'
patterns:
- 'include': '#parameters'
match: '[a-zA-Z0-9_.]+'
name: 'string.other'
optionalParameters:
- begin: '\\['
- end: '\\]'
+ begin: '\['
+ end: '\]'
patterns:
- 'include': '#optionalParameter'
optionalParameter:
match: '[a-zA-Z0-9_.]+'
- name: 'meta.separator'
+ name: 'comment.line'
separators:
- match: '\\||,'
+ match: '\||,'
name: 'comment.line'
apiMember:
- match: '((?:<\\+)|(?:<\\~)|(?:<\\-)|(?:\\+>)|(?:\\~>)|(?:\\->)|\\-|\\+|(?:::)|#)([a-zA-z0-9_]+)'
+ match: '((?:<\+)|(?:<\~)|(?:<\-)|(?:\+>)|(?:\~>)|(?:\->)|\-|\+|(?:::)|#)([a-zA-z0-9_]+)'
captures:
'1':
name: 'keyword.control'
match: '[ \t]*//[ \t]*.*'
name: 'comment.line'
operators:
- match: '(?:\\->)|(?:\\=>)'
+ match: '(?:\->)|(?:\=>)'
name: 'keyword.control'
\ No newline at end of file