From 14fcd75773a49637b644ca60028ff245f617595f Mon Sep 17 00:00:00 2001 From: Jens Fischer Date: Sun, 8 Apr 2018 12:23:00 +0200 Subject: [PATCH] Add HXML support (#4092) * Add HXML support * Fix test failures --- lib/linguist/languages.yml | 7 +++++++ samples/HXML/checkstyle.hxml | 10 ++++++++++ samples/HXML/vshaxe.hxml | 31 +++++++++++++++++++++++++++++++ vendor/README.md | 1 + 4 files changed, 49 insertions(+) create mode 100644 samples/HXML/checkstyle.hxml create mode 100644 samples/HXML/vshaxe.hxml diff --git a/lib/linguist/languages.yml b/lib/linguist/languages.yml index a31506d2..3233e29b 100755 --- a/lib/linguist/languages.yml +++ b/lib/linguist/languages.yml @@ -1821,6 +1821,13 @@ HTTP: codemirror_mode: http codemirror_mime_type: message/http language_id: 152 +HXML: + type: data + ace_mode: text + extensions: + - ".hxml" + tm_scope: source.hxml + language_id: 786683730 Hack: type: programming ace_mode: php diff --git a/samples/HXML/checkstyle.hxml b/samples/HXML/checkstyle.hxml new file mode 100644 index 00000000..7a76eebb --- /dev/null +++ b/samples/HXML/checkstyle.hxml @@ -0,0 +1,10 @@ +buildGlobal.hxml +-lib mcover:2.1.1 +-D unittest +-x TestMain +--macro mcover.MCover.coverage(['checkstyle'], ['src'], ['checkstyle.reporter', 'checkstyle.Main']) + +--next +-cmd neko run -s src -s test -p resources/static-analysis.txt +-cmd neko run --default-config resources/default-config.json +-cmd neko run -c resources/default-config.json diff --git a/samples/HXML/vshaxe.hxml b/samples/HXML/vshaxe.hxml new file mode 100644 index 00000000..f22f1520 --- /dev/null +++ b/samples/HXML/vshaxe.hxml @@ -0,0 +1,31 @@ +# This file is generated with vshaxe-build - DO NOT EDIT MANUALLY! +-cp vscode-extern/src +-cp src-api +-cp src +-cp server/src +-cp server/protocol/src +-cp server/formatter/src +-cp server/test +-cp server/formatter/test +-cp syntaxes/src +-D analyzer-optimize +-D js_unflatten +-D hxnodejs-no-version-warning +-D JSTACK_MAIN=vshaxe.Main.main +-D JSTACK_ASYNC_ENTRY +-D JSTACK_FORMAT=vscode +-lib hxnodejs +-lib jstack +-lib haxe-hxparser +-lib compiletime +-lib mockatoo +-lib mconsole +-lib hx3compat +-lib hxargs +-lib json2object +-lib yaml +-lib plist +-debug +-js bin/build.js +--no-inline +-main Build diff --git a/vendor/README.md b/vendor/README.md index f7c1147f..e7fb76df 100644 --- a/vendor/README.md +++ b/vendor/README.md @@ -161,6 +161,7 @@ This is a list of grammars that Linguist selects to provide syntax highlighting - **HTML+ERB:** [atom/language-ruby](https://github.com/atom/language-ruby) - **HTML+PHP:** [textmate/php.tmbundle](https://github.com/textmate/php.tmbundle) - **HTTP:** [samsalisbury/Sublime-HTTP](https://github.com/samsalisbury/Sublime-HTTP) +- **HXML:** [vshaxe/haxe-TmLanguage](https://github.com/vshaxe/haxe-TmLanguage) - **IDL:** [mgalloy/idl.tmbundle](https://github.com/mgalloy/idl.tmbundle) - **Idris:** [idris-hackers/idris-sublime](https://github.com/idris-hackers/idris-sublime) - **Inform 7:** [erkyrath/language-inform7](https://github.com/erkyrath/language-inform7)