Skip to content

Commit 0ddecd9

Browse files
authored
Support godot shader (#1118)
* Support godot shader * Update README
1 parent 554a72e commit 0ddecd9

File tree

3 files changed

+31
-0
lines changed

3 files changed

+31
-0
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -404,6 +404,7 @@ FSharp
404404
Fstar
405405
GDB
406406
GdScript
407+
GdShader
407408
Gherkin
408409
Gleam
409410
Glsl

languages.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1811,6 +1811,12 @@
18111811
"line_comment": ["#"],
18121812
"quotes": [["\\\"", "\\\""], ["'", "'"]],
18131813
"extensions": ["zsh"]
1814+
},
1815+
"GdShader": {
1816+
"name": "GDShader",
1817+
"line_comment": ["//"],
1818+
"multi_line_comments": [["/*", "*/"]],
1819+
"extensions": ["gdshader"]
18141820
}
18151821
}
18161822
}

tests/data/gdshader.gdshader

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
// 24 lines 6 code 13 comments 5 blanks
2+
/*
3+
test
4+
test
5+
test
6+
*/
7+
8+
/* /** */
9+
10+
void fragment() {
11+
// there is not any string in gdshader
12+
int x, b, c;
13+
float p, q, r;
14+
if(b == c) {
15+
16+
}
17+
/**
18+
//sdsadasdasdasd /*
19+
**/
20+
21+
/* // odpwopdw
22+
// */
23+
}
24+

0 commit comments

Comments
 (0)