aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobin Kaup <robin@robinkaup.com>2012-11-21 09:08:30 +0000
committerRobin Kaup <robin@robinkaup.com>2012-11-21 09:36:39 +0000
commit018795a69d99269af03d8e4d1aa9f57a0cbd6eb4 (patch)
tree8585f6fd3d9db03d33618485d36ae70afb0b3d26
parentfbddc0c520a31680a58eb35c09792cc4b52e3f6c (diff)
downloadvim-glsl-018795a69d99269af03d8e4d1aa9f57a0cbd6eb4.tar.gz
vim-glsl-018795a69d99269af03d8e4d1aa9f57a0cbd6eb4.zip
Don't highlight numbers at the end of identifiers.
-rw-r--r--syntax/glsl.vim4
1 files changed, 4 insertions, 0 deletions
diff --git a/syntax/glsl.vim b/syntax/glsl.vim
index 7e36450..d711cfb 100644
--- a/syntax/glsl.vim
+++ b/syntax/glsl.vim
@@ -85,6 +85,10 @@ syn keyword glslQualifier triangle_strip triangles triangles_adjacency unifor
syn keyword glslQualifier coherent volatile restrict readonly writeonly
+" This prevents numbers at ends of identifies from being highlighted as
+" numbers.
+syn match glslIdentifier display "\I\i*"
+
hi def link glslConditional Conditional
hi def link glslRepeat Repeat
hi def link glslStatement Statement