extensions/glsl/languages/glsl/config.toml 🔗
@@ -10,6 +10,7 @@ path_suffixes = [
# Other
"glsl"
]
+first_line_pattern = '^#version \d+'
line_comments = ["// "]
block_comment = ["/* ", " */"]
brackets = [
not a cow created
added first line pattern for glsl because some extensions conflict with
others like fragment shaders (.fs) would be highlighted by f#
<details>
| no f# extension no fix | f# extension no fix | f# extension with fix |
|--------|--------|--------|
|

|

|

|
</details>
Release Notes:
- glsl: Added a workaround for an issue where fragment shaders with the `.fs` file extension would be misidentified as F#. Now, adding `#version {version}` to the first line of your fragment shader will ensure it is always recognized as glsl
extensions/glsl/languages/glsl/config.toml | 1 +
1 file changed, 1 insertion(+)
@@ -10,6 +10,7 @@ path_suffixes = [
# Other
"glsl"
]
+first_line_pattern = '^#version \d+'
line_comments = ["// "]
block_comment = ["/* ", " */"]
brackets = [