From fb0d1ebc73339d4773e826803c8b0bbc70ef34fc Mon Sep 17 00:00:00 2001 From: Joshua Barretto Date: Mon, 10 Nov 2025 12:46:24 +0000 Subject: [PATCH] Better GLSL support --- README.md | 6 +++++- src/lang/mod.rs | 2 +- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index a01c4ed..7a803d4 100644 --- a/README.md +++ b/README.md @@ -25,4 +25,8 @@ ## Issues to fix -- New file creation should work with non-existent directories \ No newline at end of file +- New file creation should work with non-existent directories +- Search results should be ranked by 'path elements shared with original path' +- Buffer switcher and search results should be filterable by elements of the path +- Buffer switcher and search results should disambiguate paths with the same filename +- Undo history changes should not join so easily \ No newline at end of file diff --git a/src/lang/mod.rs b/src/lang/mod.rs index 3590e6d..f11a808 100644 --- a/src/lang/mod.rs +++ b/src/lang/mod.rs @@ -198,7 +198,7 @@ impl Highlighter { pub fn glsl(self) -> Self { self // Keywords - .with(TokenKind::Keyword, r"\b[(struct)(if)(while)(for)(else)(break)(continue)(const)(return)(layout)(uniform)(set)(binding)(location)(in)]\b") + .with(TokenKind::Keyword, r"\b[(struct)(if)(while)(for)(else)(break)(continue)(const)(return)(layout)(uniform)(set)(binding)(location)(inout)(in)(case)(switch)(default)]\b") // Primitives .with(TokenKind::Type, r"\b[(u?int)(float)(double)(bool)(void)([ui]?vec[1-4]*)([ui]?mat[1-4]*)(texture[(2D)(3D)]?(Cube)?)([ui]?sampler[(2D)(3D)]?(Shadow)?)]\b") // Builtins