summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorrobot-piglet <[email protected]>2025-07-30 15:17:01 +0300
committerrobot-piglet <[email protected]>2025-07-30 15:54:09 +0300
commit9fcfb259c684ccad981aa200666ae60fc662a25e (patch)
tree00fcd0c483d8e5d91aa18d5e14e9c9812731c03c
parent571053e719291f94f9d2da514abfded5de7c276b (diff)
Intermediate changes
commit_hash:e28d8d6493131d55021800ea5c63fe3e9021afb3
-rw-r--r--yql/essentials/tools/yql_highlight/artifact/ya.make2
-rw-r--r--yql/essentials/tools/yql_highlight/generate_vim.cpp7
2 files changed, 7 insertions, 2 deletions
diff --git a/yql/essentials/tools/yql_highlight/artifact/ya.make b/yql/essentials/tools/yql_highlight/artifact/ya.make
index 4ecbc55cfc9..cb3d1c0d464 100644
--- a/yql/essentials/tools/yql_highlight/artifact/ya.make
+++ b/yql/essentials/tools/yql_highlight/artifact/ya.make
@@ -12,7 +12,7 @@ RUN_PROGRAM(
RUN_PROGRAM(
yql/essentials/tools/yql_highlight --generate="vim"
- STDOUT yql_test.vim
+ STDOUT yql_new.vim
)
END()
diff --git a/yql/essentials/tools/yql_highlight/generate_vim.cpp b/yql/essentials/tools/yql_highlight/generate_vim.cpp
index c93442cf5f4..e914b5c6e32 100644
--- a/yql/essentials/tools/yql_highlight/generate_vim.cpp
+++ b/yql/essentials/tools/yql_highlight/generate_vim.cpp
@@ -53,6 +53,11 @@ namespace NSQLHighlight {
vim << R"(")";
+ // Prevent a range pattern conflict
+ if (unit.RangePattern) {
+ SubstGlobal(vim, "|\\n", "");
+ }
+
return vim;
}
@@ -108,7 +113,7 @@ namespace NSQLHighlight {
case EUnitKind::QuotedIdentifier:
return {"Special", "Underlined"};
case EUnitKind::BindParameterIdentifier:
- return {"Identifier"};
+ return {"Define"};
case EUnitKind::TypeIdentifier:
return {"Type"};
case EUnitKind::FunctionIdentifier: