[PATCH] D65738: [clangd] Added a TextMate theme parser that updates when the current theme changes.
Johan Vikström via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Mon Aug 5 04:34:04 PDT 2019
jvikstrom created this revision.
jvikstrom added reviewers: hokein, ilya-biryukov.
Herald added subscribers: cfe-commits, kadircet, arphaman, jkorous, MaskRay.
Herald added a project: clang.
Adds a TextMate parser module to the vscode extension. It watches for changes to the vscode configuration and updates the colors when the current theme is changed.
The colors are saved in a singleton to allow for easy access when doing coloring later.
The TMColor class maps all scopes to the clangd TextMate scope indexes and discards any theme colors that are not relevant.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D65738
Files:
clang-tools-extra/clangd/clients/clangd-vscode/package.json
clang-tools-extra/clangd/clients/clangd-vscode/src/TextMate.ts
clang-tools-extra/clangd/clients/clangd-vscode/test/TextMate.test.ts
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D65738.213319.patch
Type: text/x-patch
Size: 8425 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20190805/c33af4f7/attachment.bin>
More information about the cfe-commits
mailing list