[vim/vim] Add runtime files for GLSL (PR #15317)

6 views
Skip to first unread message

Gregory Anders

unread,
Jul 21, 2024, 1:02:26 PM (20 hours ago) Jul 21
to vim/vim, Subscribed

Upstream the GLSL syntax files from https://github.com/tikhomirov/vim-glsl. I've added myself as maintainer with a link to the upstream repo.

The only differences from upstream are:

  1. Removed setting 'formatoptions' in the indent file. If anything, these should go into a ftplugin file, not an indent file, but since these particular settings are subjective and not required for the filetype, I just removed it.
  2. Omitted the after/syntax files. The upstream repo contains some after/syntax files to modify HTML and Elm filetypes to include inline GLSL. We could modify the html and elm syntax files in Vim to include this, but I opted to leave those alone and just omit them (I'll leave this to Vim maintainers on how they want to address this).

There was a conflict in the .comp extension between GLSL and the "Mason" filetype. The .comp extension for mason was added in August 2014. There are not many details about that proposed change: the submitter said only that .comp files denote Mason components. However, the upstream Mason documentation claims that component files use only .mc, .mi, and .mp extensions. I could not find any search results indicating that the .comp extension is used for anything related to Mason (or indeed, for anything at all other than GLSL), so I think it is safe to remove this conflict in favor of GLSL.


You can view, comment on, or merge this pull request online at:

  https://github.com/vim/vim/pull/15317

Commit Summary

  • c5ccc01 Add runtime files for GLSL

File Changes

(4 files)

Patch Links:


Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/pull/15317@github.com>

Reply all
Reply to author
Forward
0 new messages