aboutsummaryrefslogtreecommitdiff
path: root/test/unit/formatc.lua
diff options
context:
space:
mode:
authorZyX <kp-pav@yandex.ru>2017-10-16 03:03:34 +0300
committerZyX <kp-pav@yandex.ru>2017-10-16 03:03:34 +0300
commit248493f155e42186440c7d081b27ffe760b67b9e (patch)
treeb663283a1a82fd50ff8647f48a7a196914404844 /test/unit/formatc.lua
parenta535d68380e472a661478cd6a65aad243ebd6a82 (diff)
downloadrneovim-248493f155e42186440c7d081b27ffe760b67b9e.tar.gz
rneovim-248493f155e42186440c7d081b27ffe760b67b9e.tar.bz2
rneovim-248493f155e42186440c7d081b27ffe760b67b9e.zip
test/unit/formatc: Fix parsing of most recent viml_parser_highlight
Diffstat (limited to 'test/unit/formatc.lua')
-rw-r--r--test/unit/formatc.lua7
1 files changed, 4 insertions, 3 deletions
diff --git a/test/unit/formatc.lua b/test/unit/formatc.lua
index e288081960..2fd37c599a 100644
--- a/test/unit/formatc.lua
+++ b/test/unit/formatc.lua
@@ -65,11 +65,12 @@ local tokens = P { "tokens";
identifier = Ct(C(R("az","AZ","__") * R("09","az","AZ","__")^0) * Cc"identifier"),
-- Single character in a string
- string_char = R("az","AZ","09") + S"$%^&*()_-+={[}]:;@~#<,>.!?/ \t" + (P"\\" * S[[ntvbrfa\?'"0x]]),
+ sstring_char = R("\001&","([","]\255") + (P"\\" * S[[ntvbrfa\?'"0x]]),
+ dstring_char = R("\001!","#[","]\255") + (P"\\" * S[[ntvbrfa\?'"0x]]),
-- String literal
- string = Ct(C(P"'" * (V"string_char" + P'"')^0 * P"'" +
- P'"' * (V"string_char" + P"'")^0 * P'"') * Cc"string"),
+ string = Ct(C(P"'" * (V"sstring_char" + P'"')^0 * P"'" +
+ P'"' * (V"dstring_char" + P"'")^0 * P'"') * Cc"string"),
-- Operator
operator = Ct(C(P">>=" + P"<<=" + P"..." +