syntax hightlight: keyword case insensitive

This commit is contained in:
全卓 2022-12-07 08:44:13 +08:00
parent 0d84afb4bf
commit 6777326b1a
2 changed files with 2 additions and 4 deletions

View File

@ -1,8 +1,6 @@
import { LSPAny } from "vscode-languageserver";
import { connection } from "./server";
import ExtensionSettings, { extSettings } from "./settings";
import * as cp from 'child_process';
import { promisify } from 'util';
import { extSettings } from "./settings";
type Modules = string[];
type Policies = string[];

View File

@ -61,7 +61,7 @@ patterns:
match: ^\s*\b(?i:build_name|exec_program|export_library_dependencies|install_files|install_programs|install_targets|load_command|make_directory|output_required_files|qt_wrap_cpp|qt_wrap_ui|remove|subdir_depends|subdirs|use_mangled_mesa|utility_source|variable_requires|write_file)\b
# flow control commands in cmake
- name: keyword.control.cmake
match: ^\s*\b(if|elif|else|endif|while|endwhile|break|continue|foreach|endforeach|return|function|endfunction|macro|endmacro)\b
match: ^\s*\b(?i:if|elif|else|endif|while|endwhile|break|continue|foreach|endforeach|return|function|endfunction|macro|endmacro)\b
# unary tests operators
- name: keyword.other.unary.cmake
match: \b(EXISTS|COMMAND|DEFINED)\b