Created attachment 172400 [details] Wrong highlight and correct behaviour after adding the line In nix attribute names can be arbitrary strings and so some attribute names must be quoted. This is currently not correctly recognized in the syntax higlighting. I think what is missing is a line in the "Set Access" context: <DetectChar char=""" attribute="String" context="#pop!String" />
A possibly relevant merge request was started @ https://invent.kde.org/frameworks/syntax-highlighting/-/merge_requests/651
Git commit 1d94eb693cfe32f53420fae51a8a6892740a7341 by Christoph Cullmann, on behalf of Jonathan Poelen. Committed on 21/08/2024 at 20:50. Pushed by cullmann into branch 'master'. Nix: fix string in attribute access M +2 -0 autotests/folding/test.nix.fold M +2 -0 autotests/html/test.nix.dark.html M +2 -0 autotests/html/test.nix.html M +2 -0 autotests/input/test.nix M +2 -0 autotests/reference/test.nix.ref M +2 -1 data/syntax/nix.xml https://invent.kde.org/frameworks/syntax-highlighting/-/commit/1d94eb693cfe32f53420fae51a8a6892740a7341