Highlight built-in constants too

html_output
Wilfred Hughes 2022-02-03 00:27:35 +07:00
parent 9a630bc01b
commit 3e9d506256
2 changed files with 9 additions and 0 deletions

@ -13,6 +13,9 @@ Fixed an issue where larger additions were not lined up with removals.
Improved syntax highlighting for Clojure and Common Lisp.
Built-in constants are now highlighted consistently with other
constants.
## 0.18.1 (released 30 January 2022)
Fixed a compilation issue on Rust 1.54 (0.18 only built on newer

@ -467,6 +467,12 @@ pub fn parse_to_tree(
if let Some(idx) = config.highlight_query.capture_index_for_name("constant") {
keyword_ish_capture_ids.push(idx);
}
if let Some(idx) = config
.highlight_query
.capture_index_for_name("constant.builtin")
{
keyword_ish_capture_ids.push(idx);
}
let mut string_capture_ids = vec![];
if let Some(idx) = config.highlight_query.capture_index_for_name("string") {