Skip to content

Lua highlighting bug in Light/Light+/Dark/Dark+ #71504

@alekseyt

Description

@alekseyt

Issue Type: Bug

This isn't a huge deal, but this always throws me off when i need to edit Lua using default theme. Basically in Lua syntax highlight keywords "and", "or" and "not" are not highlighted like they are in other themes. This reproduces in Light/Light+/Dark/Dark+.

The issue might be related to the fact that in lua.tmLanguage.json those keywords are listed under keyword.operator.lua section while other Lua keywords are listed under keyword.control.lua (and they are properly highlighted).

Here is comparison of various themes:

image

Note that "and", "or" and "not" are highlighted in Solarized Light and Monokai, but not in Light+ and Dark+.

I suspect other languages might also be affected somehow, but i didn't check.

VS Code version: Code 1.32.3 (a3db5be, 2019-03-14T23:38:49.842Z)
OS version: Linux x64 4.4.0-142-generic

Extensions (6)
Extension Author (truncated) Version
Bookmarks ale 10.3.0
cpptools ms- 0.19.0
shader sle 1.1.4
vscode-lua tri 0.12.4
cmake twx 0.0.17
vscode-todo-highlight way 1.0.4

(1 theme extensions excluded)

Metadata

Metadata

Assignees

Labels

themesColor theme issues

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions