Skip to content

Commit

Permalink
Support godot shader (#1118)
Browse files Browse the repository at this point in the history
* Support godot shader

* Update README
  • Loading branch information
limuy2022 authored Aug 16, 2024
1 parent 554a72e commit 0ddecd9
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -404,6 +404,7 @@ FSharp
Fstar
GDB
GdScript
GdShader
Gherkin
Gleam
Glsl
Expand Down
6 changes: 6 additions & 0 deletions languages.json
Original file line number Diff line number Diff line change
Expand Up @@ -1811,6 +1811,12 @@
"line_comment": ["#"],
"quotes": [["\\\"", "\\\""], ["'", "'"]],
"extensions": ["zsh"]
},
"GdShader": {
"name": "GDShader",
"line_comment": ["//"],
"multi_line_comments": [["/*", "*/"]],
"extensions": ["gdshader"]
}
}
}
24 changes: 24 additions & 0 deletions tests/data/gdshader.gdshader
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
// 24 lines 6 code 13 comments 5 blanks
/*
test
test
test
*/

/* /** */

void fragment() {
// there is not any string in gdshader
int x, b, c;
float p, q, r;
if(b == c) {

}
/**
//sdsadasdasdasd /*
**/

/* // odpwopdw
// */
}

0 comments on commit 0ddecd9

Please sign in to comment.