aboutsummaryrefslogtreecommitdiff
path: root/indent
Commit message (Collapse)AuthorAgeFilesLines
* Ensure cinoptions is set to a known value (#24)David Briscoe2022-05-101-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | Fix `set cinoptions=#1` causes incorrect define indenting. To get correct glsl indentation, we want default 'cinoptions'. It's useful to `set cinoptions=#1` (to allow most filetypes to use # comments), so we should ensure we're using a known set of indent options and revert to the default. The user can still customize cinoptions in ~/.vim/after/indent/glsl.vim. ## Test ```vim :set cinoptions=#1 :edit test.glsl gg=G ``` ```glsl // test.glsl #define PI 4 #define TAU 8 // line gets 1 space indent float f(float x) { return x * 2; } ```
* Update my name and emailSergii Tykhomyrov2022-02-061-1/+1
|
* Enable auto-format of multiline comments (#15)Zaven Muradyan2017-10-151-0/+1
| | | This adds the `r`, `o`, and `q` format options which allow automatic insertion of the comment leader character in multiline comments. See `:help fo-table` for details on these options (they're all related to wrapping/leader-insertion for multiline comments).
* Add syntax highlighting for WebGL shaders in <script> tagsSergey Tikhomirov2014-02-091-1/+0
|
* Update maintainer's emailSergey Tikhomirov2014-02-081-4/+3
|
* Added indentation settings for GLSLSergey Tikhomirov2012-07-101-0/+12