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:
@@ -10,6 +10,7 @@ path_suffixes = [
|
||||
# Other
|
||||
"glsl"
|
||||
]
|
||||
first_line_pattern = '^#version \d+'
|
||||
line_comments = ["// "]
|
||||
block_comment = ["/* ", " */"]
|
||||
brackets = [
|
||||
|
||||
Reference in New Issue
Block a user