From 1391cbeeedc66c08b2b78c3a790c0daba4cb9146 Mon Sep 17 00:00:00 2001 From: Robin Voetter Date: Wed, 24 Apr 2019 21:20:00 +0200 Subject: [PATCH] Add missing volatile/restrict keywords --- GLSL.sublime-syntax | 4 +++- GLSL.tmLanguage | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/GLSL.sublime-syntax b/GLSL.sublime-syntax index 827ede9..e247b7f 100644 --- a/GLSL.sublime-syntax +++ b/GLSL.sublime-syntax @@ -157,7 +157,9 @@ variables: shared | coherent | readonly | - writeonly + writeonly | + volatile | + restrict )\b reserved_keyword_for_future_use: | diff --git a/GLSL.tmLanguage b/GLSL.tmLanguage index f5cf701..425ac3f 100644 --- a/GLSL.tmLanguage +++ b/GLSL.tmLanguage @@ -114,7 +114,7 @@ match - \b(layout|attribute|centroid|sampler|patch|const|flat|in|inout|invariant|noperspective|out|smooth|uniform|varying|buffer|shared|coherent|readonly|writeonly)\b + \b(layout|attribute|centroid|sampler|patch|const|flat|in|inout|invariant|noperspective|out|smooth|uniform|varying|buffer|shared|coherent|readonly|writeonly|volatile|restrict)\b name storage.modifier.glsl