Fix syntax highlighting conflicts with certain glsl types (#32022)
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
This commit is contained in:
parent
2fe1293fba
commit
b7c2d4876c
1 changed files with 1 additions and 0 deletions
|
@ -10,6 +10,7 @@ path_suffixes = [
|
|||
# Other
|
||||
"glsl"
|
||||
]
|
||||
first_line_pattern = '^#version \d+'
|
||||
line_comments = ["// "]
|
||||
block_comment = ["/* ", " */"]
|
||||
brackets = [
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue