@@ -136,166 +136,12 @@ We use a similar set of scopes as
136136[ SublimeText] ( https://www.sublimetext.com/docs/scope_naming.html ) . See also
137137[ TextMate] ( https://macromates.com/manual/en/language_grammars )  scopes.
138138
139- -  ` attribute `  - Class attributes, html tag attributes
140- 
141- -  ` type `  - Types
142-   -  ` builtin `  - Primitive types provided by the language (` int ` , ` usize ` )
143- -  ` constructor ` 
144- 
145- -  ` constant `  (TODO: constant.other.placeholder for %v)
146-   -  ` builtin `  Special constants provided by the language (` true ` , ` false ` , ` nil `  etc)
147-     -  ` boolean ` 
148-   -  ` character ` 
149-     -  ` escape ` 
150-   -  ` numeric `  (numbers)
151-     -  ` integer ` 
152-     -  ` float ` 
153- 
154- -  ` string `  (TODO: string.quoted.{single, double}, string.raw/.unquoted)?
155-   -  ` regexp `  - Regular expressions
156-   -  ` special ` 
157-     -  ` path ` 
158-     -  ` url ` 
159-     -  ` symbol `  - Erlang/Elixir atoms, Ruby symbols, Clojure keywords
160- 
161- -  ` comment `  - Code comments
162-   -  ` line `  - Single line comments (` // ` )
163-   -  ` block `  - Block comments (e.g. (` /*     */ ` )
164-     -  ` documentation `  - Documentation comments (e.g. ` /// `  in Rust)
165- 
166- -  ` variable `  - Variables
167-   -  ` builtin `  - Reserved language variables (` self ` , ` this ` , ` super ` , etc)
168-   -  ` parameter `  - Function parameters
169-   -  ` other ` 
170-     -  ` member `  - Fields of composite data types (e.g. structs, unions)
171- 
172- -  ` label ` 
173- 
174- -  ` punctuation ` 
175-   -  ` delimiter `  - Commas, colons
176-   -  ` bracket `  - Parentheses, angle brackets, etc.
177-   -  ` special `  - String interpolation brackets.
178- 
179- -  ` keyword ` 
180-   -  ` control ` 
181-     -  ` conditional `  - ` if ` , ` else ` 
182-     -  ` repeat `  - ` for ` , ` while ` , ` loop ` 
183-     -  ` import `  - ` import ` , ` export ` 
184-     -  ` return ` 
185-     -  ` exception ` 
186-   -  ` operator `  - ` or ` , ` in ` 
187-   -  ` directive `  - Preprocessor directives (` #if `  in C) 
188-   -  ` function `  - ` fn ` , ` func ` 
189-   -  ` storage `  - Keywords describing how things are stored
190-     -  ` type `  - The type of something, ` class ` , ` function ` , ` var ` , ` let ` , etc. 
191-     -  ` modifier `  - Storage modifiers like ` static ` , ` mut ` , ` const ` , ` ref ` , etc.
192- 
193- -  ` operator `  - ` || ` , ` += ` , ` > ` 
194- 
195- -  ` function ` 
196-   -  ` builtin ` 
197-   -  ` method ` 
198-   -  ` macro ` 
199-   -  ` special `  (preprocessor in C)
200- 
201- -  ` tag `  - Tags (e.g. ` <body> `  in HTML)
202- 
203- -  ` namespace ` 
204- 
205- -  ` markup ` 
206-   -  ` heading ` 
207-     -  ` marker ` 
208-     -  ` 1 ` , ` 2 ` , ` 3 ` , ` 4 ` , ` 5 ` , ` 6 `  - heading text for h1 through h6
209-   -  ` list ` 
210-     -  ` unnumbered ` 
211-     -  ` numbered ` 
212-   -  ` bold ` 
213-   -  ` italic ` 
214-   -  ` link ` 
215-     -  ` url `  - urls pointed to by links
216-     -  ` label `  - non-url link references
217-     -  ` text `  - url and image descriptions in links
218-   -  ` quote ` 
219-   -  ` raw ` 
220-     -  ` inline ` 
221-     -  ` block ` 
222- 
223- -  ` diff `  - version control changes
224-   -  ` plus `  - additions
225-   -  ` minus `  - deletions
226-   -  ` delta `  - modifications
227-     -  ` moved `  - renamed or moved files/changes
228- 
229- #### Interface  
230- 
231- These scopes are used for theming the editor interface.
232- 
233- -  ` markup ` 
234-   -  ` normal ` 
235-     -  ` completion `  - for completion doc popup ui
236-     -  ` hover `  - for hover popup ui
237-   -  ` heading ` 
238-     -  ` completion `  - for completion doc popup ui
239-     -  ` hover `  - for hover popup ui
240-   -  ` raw ` 
241-     -  ` inline ` 
242-       -  ` completion `  - for completion doc popup ui
243-       -  ` hover `  - for hover popup ui
244- 
245- 
246- |  Key                         |  Notes                                                                                          | 
247- |  ---                         |  ---                                                                                            | 
248- |  ` ui.background `              |                                                                                                 | 
249- |  ` ui.background.separator `    |  Picker separator below input line                                                              | 
250- |  ` ui.cursor `                  |                                                                                                 | 
251- |  ` ui.cursor.insert `           |                                                                                                 | 
252- |  ` ui.cursor.select `           |                                                                                                 | 
253- |  ` ui.cursor.match `            |  Matching bracket etc.                                                                          | 
254- |  ` ui.cursor.primary `          |  Cursor with primary selection                                                                  | 
255- |  ` ui.gutter `                  |  Gutter                                                                                         | 
256- |  ` ui.gutter.selected `         |  Gutter for the line the cursor is on                                                           | 
257- |  ` ui.linenr `                  |  Line numbers                                                                                   | 
258- |  ` ui.linenr.selected `         |  Line number for the line the cursor is on                                                      | 
259- |  ` ui.statusline `              |  Statusline                                                                                     | 
260- |  ` ui.statusline.inactive `     |  Statusline (unfocused document)                                                                | 
261- |  ` ui.statusline.normal `       |  Statusline mode during normal mode ([ only if ` editor.color-modes `  is enabled] [ editor-section ] ) | 
262- |  ` ui.statusline.insert `       |  Statusline mode during insert mode ([ only if ` editor.color-modes `  is enabled] [ editor-section ] ) | 
263- |  ` ui.statusline.select `       |  Statusline mode during select mode ([ only if ` editor.color-modes `  is enabled] [ editor-section ] ) | 
264- |  ` ui.statusline.separator `    |  Separator character in statusline                                                              | 
265- |  ` ui.popup `                   |  Documentation popups (e.g Space + k)                                                             | 
266- |  ` ui.popup.info `              |  Prompt for multiple key options                                                                | 
267- |  ` ui.window `                  |  Border lines separating splits                                                                 | 
268- |  ` ui.help `                    |  Description box for commands                                                                   | 
269- |  ` ui.text `                    |  Command prompts, popup text, etc.                                                              | 
270- |  ` ui.text.focus `              |                                                                                                 | 
271- |  ` ui.text.inactive `           |  Same as ` ui.text `  but when the text is inactive (e.g. suggestions)                             | 
272- |  ` ui.text.info `               |  The key: command text in ` ui.popup.info `  boxes                                                 | 
273- |  ` ui.virtual.ruler `           |  Ruler columns (see the [ ` editor.rulers `  config] [ editor-section ] )                               | 
274- |  ` ui.virtual.whitespace `      |  Visible whitespace characters                                                                 | 
275- |  ` ui.virtual.indent-guide `    |  Vertical indent width guides                                                                   | 
276- |  ` ui.menu `                    |  Code and command completion menus                                                              | 
277- |  ` ui.menu.selected `           |  Selected autocomplete item                                                                     | 
278- |  ` ui.menu.scroll `             |  ` fg `  sets thumb color, ` bg `  sets track color of scrollbar                                      | 
279- |  ` ui.selection `               |  For selections in the editing area                                                             | 
280- |  ` ui.selection.primary `       |                                                                                                 | 
281- |  ` ui.cursorline.primary `      |  The line of the primary cursor ([ if cursorline is enabled] [ editor-section ] )                    | 
282- |  ` ui.cursorline.secondary `    |  The lines of any other cursors ([ if cursorline is enabled] [ editor-section ] )                    | 
283- |  ` ui.cursorcolumn.primary `    |  The column of the primary cursor ([ if cursorcolumn is enabled] [ editor-section ] )                | 
284- |  ` ui.cursorcolumn.secondary `  |  The columns of any other cursors ([ if cursorcolumn is enabled] [ editor-section ] )                | 
285- |  ` warning `                    |  Diagnostics warning (gutter)                                                                   | 
286- |  ` error `                      |  Diagnostics error (gutter)                                                                     | 
287- |  ` info `                       |  Diagnostics info (gutter)                                                                      | 
288- |  ` hint `                       |  Diagnostics hint (gutter)                                                                      | 
289- |  ` diagnostic `                 |  Diagnostics fallback style (editing area)                                                      | 
290- |  ` diagnostic.hint `            |  Diagnostics hint (editing area)                                                                | 
291- |  ` diagnostic.info `            |  Diagnostics info (editing area)                                                                | 
292- |  ` diagnostic.warning `         |  Diagnostics warning (editing area)                                                             | 
293- |  ` diagnostic.error `           |  Diagnostics error (editing area)                                                               | 
139+ ** Note** : not all language keys are applicable to all languages, you can have a look at the ` runtime/queries/*/highlights.scm `  files to see what is defined or not for your language of choice.
294140
295141You can check compliance to spec with
296142
297143``` shell 
298144cargo xtask themelint onedark  #  replace onedark with <name>
299145``` 
300146
301- [ editor-section ] :  ./configuration .md#editor-section 
147+ {{#include generated/theme-table .md}} 
0 commit comments