[gtksourceview] lua.lang: improve escape regex
- From: Sébastien Wilmet <swilmet src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtksourceview] lua.lang: improve escape regex
- Date: Wed, 22 Oct 2014 14:06:39 +0000 (UTC)
commit f46f3ada13ede524da56586d57f6648120acd6aa
Author: Kate Adams <self kateadams eu>
Date: Tue Oct 21 22:53:17 2014 +0100
lua.lang: improve escape regex
List of valid escape strings taken from
http://www.lua.org/work/doc/manual.html (3.1 - Lexical Conventions).
https://bugzilla.gnome.org/show_bug.cgi?id=738971
data/language-specs/lua.lang | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/data/language-specs/lua.lang b/data/language-specs/lua.lang
index 5fd4e47..89d24ec 100644
--- a/data/language-specs/lua.lang
+++ b/data/language-specs/lua.lang
@@ -44,7 +44,7 @@
<definitions>
<context id="lua-escape" style-ref="escape">
- <match>\\(\d\d?\d?|.)</match>
+ <match>\\(\d{1,3}|a|b|f|n|r|t|u{[0-9a-fA-F]+?}|v|x[0-9a-fA-F]{2}|z|\\|"|'|\[|\])</match>
</context>
<context id="label" style-ref="label">
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]