[gtksourceview] Fixed highlighting of ruby floating numbers
- From: Jesse van den Kieboom <jessevdk src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtksourceview] Fixed highlighting of ruby floating numbers
- Date: Wed, 27 Feb 2013 14:07:39 +0000 (UTC)
commit e0be5c716f2587622b25dd3a9cec2a744e43dce5
Author: Jesse van den Kieboom <jessevdk gnome org>
Date: Wed Feb 27 15:07:16 2013 +0100
Fixed highlighting of ruby floating numbers
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 4e6b36d..63be89d 100644
--- a/data/language-specs/ruby.lang
+++ b/data/language-specs/ruby.lang
@@ -382,8 +382,8 @@
<define-regex id="underscore_num">\d(_?\d)*</define-regex>
<define-regex id="float" extended="true">
- ( (\%{underscore_num})?\.\%{underscore_num} | \%{underscore_num}\. ) |
- (
(\%{underscore_num}|(\%{underscore_num})?\.\%{underscore_num}|\%{underscore_num}\.)[eE][+-]?\%{underscore_num}
)
+ ( \%{underscore_num}\.\%{underscore_num} ) |
+ ( (\%{underscore_num}(\.\%{underscore_num})?)[eE][+-]?\%{underscore_num} )
</define-regex>
<context id="float" style-ref="floating-point">
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]