[gtksourceview] More strict start of heredoc in Ruby
- From: Jesse van den Kieboom <jessevdk src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtksourceview] More strict start of heredoc in Ruby
- Date: Mon, 12 Mar 2012 09:15:42 +0000 (UTC)
commit 3faeb5f62341134626b41af27553249fa0fec769
Author: Jesse van den Kieboom <jesse vandenkieboom epfl ch>
Date: Mon Mar 12 10:15:12 2012 +0100
More strict start of heredoc in Ruby
Fixes: #671862
data/language-specs/ruby.lang | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/data/language-specs/ruby.lang b/data/language-specs/ruby.lang
index c27adc3..5b985a6 100644
--- a/data/language-specs/ruby.lang
+++ b/data/language-specs/ruby.lang
@@ -466,7 +466,7 @@
</context>
<context id="here-doc-string" style-ref="here-doc" style-inside="true">
- <start><<(\w+)</start>
+ <start><<([a-zA-Z_]\w*)</start>
<end>^\%{1 start}</end>
<include>
<context ref="escape"/>
@@ -477,7 +477,7 @@
</context>
<context id="here-doc-indented-string" style-ref="here-doc" style-inside="true">
- <start><<-(\w+)</start>
+ <start><<-([a-zA-Z_]\w*)</start>
<end>^\s*\%{1 start}</end>
<include>
<context ref="escape"/>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]