Support godot shader (#1118)

* Support godot shader

* Update README
This commit is contained in:
limuy2022 2024-08-16 19:14:08 +08:00 committed by GitHub
parent 554a72e44a
commit 0ddecd9351
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 31 additions and 0 deletions

View File

@ -404,6 +404,7 @@ FSharp
Fstar
GDB
GdScript
GdShader
Gherkin
Gleam
Glsl

View File

@ -1811,6 +1811,12 @@
"line_comment": ["#"],
"quotes": [["\\\"", "\\\""], ["'", "'"]],
"extensions": ["zsh"]
},
"GdShader": {
"name": "GDShader",
"line_comment": ["//"],
"multi_line_comments": [["/*", "*/"]],
"extensions": ["gdshader"]
}
}
}

View File

@ -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
// */
}