Compare commits
No commits in common. "master" and "v0.6.0" have entirely different histories.
|
@ -3,9 +3,6 @@
|
|||
* Snippets: std library top level definitions
|
||||
* Grammars: recognises interpreter directives, emacs modelines, vim modelines
|
||||
|
||||
## 0.5.4
|
||||
* Update grammar to haxe 3.4.0-rc.1
|
||||
|
||||
## 0.5.3
|
||||
* Snippets: remove unnecessary line endings
|
||||
* Snippets: description urls for Array/List/Map
|
||||
|
|
|
@ -1,63 +0,0 @@
|
|||
name: 'Haxe'
|
||||
scopeName: 'source.haxe'
|
||||
type: 'tree-sitter'
|
||||
parser: 'tree-sitter-haxe'
|
||||
fileTypes: ['hx']
|
||||
firstLineMatch: '''(?x)
|
||||
# Hashbang
|
||||
^\\#!.*(?:\\s|\\/)
|
||||
haxe
|
||||
(?:$|\\s)
|
||||
|
|
||||
# Modeline
|
||||
(?i:
|
||||
# Emacs
|
||||
-\\*-(?:\\s*(?=[^:;\\s]+\\s*-\\*-)|(?:.*?[;\\s]|(?<=-\\*-))mode\\s*:\\s*)
|
||||
haxe
|
||||
(?=[\\s;]|(?<![-*])-\\*-).*?-\\*-
|
||||
|
|
||||
# Vim
|
||||
(?:(?:\\s|^)vi(?:m[<=>]?\\d+|m)?|\\sex)(?=:(?=\\s*set?\\s[^\\n:]+:)|:(?!\\s*set?\\s))(?:(?:\\s|\\s*:\\s*)\\w*(?:\\s*=(?:[^\\n\\\\\\s]|\\\\.)*)?)*[\\s:](?:filetype|ft|syntax)\\s*=
|
||||
haxe
|
||||
(?=\\s|:|$)
|
||||
)
|
||||
'''
|
||||
|
||||
folds: [
|
||||
{ type: 'comment' }
|
||||
]
|
||||
|
||||
comments:
|
||||
start: '// '
|
||||
|
||||
scopes:
|
||||
'module': 'source.haxe'
|
||||
|
||||
'comment': 'comment.line.double-slash.haxe'
|
||||
'keyword': 'keyword.control'
|
||||
|
||||
'package_statement > keyword': 'keyword.package.haxe'
|
||||
'import_statement > keyword': 'storage.import.haxe'
|
||||
'import_statement > attribute > identifier': 'entity.name.type.import.haxe'
|
||||
|
||||
'class_declaration > keyword': 'storage.class.haxe'
|
||||
'class_declaration > identifier': 'entity.name.type.class.haxe'
|
||||
'class_declaration > attribute > identifier': 'entity.other.inherited-class.haxe'
|
||||
|
||||
'function_declaration > keyword': 'keyword.function.haxe'
|
||||
'function_declaration > identifier': 'entity.name.type.function.haxe'
|
||||
|
||||
'variable_declaration > keyword': 'keyword.variable.haxe'
|
||||
|
||||
'call > attribute:nth-child(0) > identifier': [
|
||||
{ match: 'super|trace', scopes: 'support.function.haxe'},
|
||||
{ match: '^[A-Z]', scopes: 'support.type.contructor' },
|
||||
'entity.name.function',
|
||||
]
|
||||
|
||||
'attribute > identifier': [
|
||||
{ match: '^[A-Z]', scopes: 'entity.name.type.package' },
|
||||
{ match: 'this|super', scopes: 'variable.language.haxe' },
|
||||
]
|
||||
|
||||
'type > identifier': 'support.storage.type'
|
|
@ -1,21 +0,0 @@
|
|||
{
|
||||
"name": "language-haxe",
|
||||
"version": "0.6.0",
|
||||
"lockfileVersion": 1,
|
||||
"requires": true,
|
||||
"dependencies": {
|
||||
"nan": {
|
||||
"version": "2.15.0",
|
||||
"resolved": "https://registry.npmjs.org/nan/-/nan-2.15.0.tgz",
|
||||
"integrity": "sha512-8ZtvEnA2c5aYCZYd1cvgdnU6cqwixRoYg70xPLWUws5ORTa/lnw+u4amixRS/Ac5U5mQVgp9pnlSUnbNWFaWZQ=="
|
||||
},
|
||||
"tree-sitter-haxe": {
|
||||
"version": "0.1.0",
|
||||
"resolved": "https://registry.npmjs.org/tree-sitter-haxe/-/tree-sitter-haxe-0.1.0.tgz",
|
||||
"integrity": "sha512-uhzG4GtA21mZhc38dstae3XLmiFYF0HfW82PLqIZ7E7nUZV3un208BiB0iOTv/uLHv3VyvNPOAVeEQ1eNL+ulQ==",
|
||||
"requires": {
|
||||
"nan": "^2.14.2"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
|
@ -19,7 +19,5 @@
|
|||
"atom": ">=1.5.0 <2.0.0",
|
||||
"node": "*"
|
||||
},
|
||||
"dependencies": {
|
||||
"tree-sitter-haxe": "^0.1.0"
|
||||
}
|
||||
"dependencies": {}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue