[gtksourceview] perl: also highlight non scalar special variables (bug #694554)
- From: David Miguel Susano Pinto <davidpinto src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtksourceview] perl: also highlight non scalar special variables (bug #694554)
- Date: Sun, 24 Feb 2013 02:13:37 +0000 (UTC)
commit 09daa9f9c9945b176923310c52e795573c570ef9
Author: Carnë Draug <carandraug+dev gmail com>
Date: Sun Feb 24 02:08:58 2013 +0000
perl: also highlight non scalar special variables (bug #694554)
data/language-specs/perl.lang | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/data/language-specs/perl.lang b/data/language-specs/perl.lang
index 26905cf..6b8fca7 100644
--- a/data/language-specs/perl.lang
+++ b/data/language-specs/perl.lang
@@ -123,7 +123,9 @@ FIXME: =pod should require an empty line before/after, as written in perlpod
\$^[ADEFHILMOPSTWX]? | # ($^A, ...)
\$[\\\"\[\]'&`+*.,;=%~? $><\(|/!-] | # ($|, $', ...)
\$:[^:] | # avoid confusion with $::foo (equiv. to $main::foo)
- \$(0|[1-9][0-9]*) # numbered variables (regex matches)
+ \$(0|[1-9][0-9]*) | # numbered variables (regex matches)
+ @[+-] | # special array variables
+ %[!+-] | %\^H # special hash variables
</define-regex>
<define-regex id="plain-variable" extended="true">
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]