Add grammar for HLSL (High Level Shading Language) (#3469)

This commit is contained in:
Tim Jones
2017-02-22 00:05:25 +00:00
committed by Brandon Black
parent cb59296fe0
commit fa5b6b03dc
5 changed files with 35 additions and 2 deletions

5
.gitmodules vendored
View File

@@ -820,4 +820,7 @@
url = https://github.com/Alhadis/language-regexp url = https://github.com/Alhadis/language-regexp
[submodule "vendor/grammars/Terraform.tmLanguage"] [submodule "vendor/grammars/Terraform.tmLanguage"]
path = vendor/grammars/Terraform.tmLanguage path = vendor/grammars/Terraform.tmLanguage
url = https://github.com/alexlouden/Terraform.tmLanguage url = https://github.com/alexlouden/Terraform.tmLanguage
[submodule "vendor/grammars/shaders-tmLanguage"]
path = vendor/grammars/shaders-tmLanguage
url = https://github.com/tgjones/shaders-tmLanguage

View File

@@ -573,6 +573,9 @@ vendor/grammars/scilab.tmbundle:
- source.scilab - source.scilab
vendor/grammars/secondlife-lsl: vendor/grammars/secondlife-lsl:
- source.lsl - source.lsl
vendor/grammars/shaders-tmLanguage:
- source.hlsl
- source.shaderlab
vendor/grammars/smali-sublime: vendor/grammars/smali-sublime:
- source.smali - source.smali
vendor/grammars/smalltalk-tmbundle: vendor/grammars/smalltalk-tmbundle:

View File

@@ -1598,7 +1598,7 @@ HLSL:
- ".fxh" - ".fxh"
- ".hlsli" - ".hlsli"
ace_mode: text ace_mode: text
tm_scope: none tm_scope: source.hlsl
language_id: 145 language_id: 145
HTML: HTML:
type: markup type: markup

View File

@@ -0,0 +1,26 @@
---
type: grammar
name: shaders-tmLanguage
license: mit
---
MIT License
Copyright (c) 2017 Tim Jones
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.