Commit 79de0193 authored by Y.N's avatar Y.N Committed by Christian Hergert

ruby.lang: Fix for 3 digit octal-escaped string

parent 74d749a8
......@@ -8,6 +8,7 @@
Copyright (C) 2005 Michael Witrant <mike@lepton.fr>
Copyright (C) 2006 Gabriel Bauman <gabe@codehaus.org>
Copyright (C) 2013 Jesse van den Kieboom <jessevdk@gnome.org>
Copyright (C) 2019 Yukihiro Nakai
GtkSourceView is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
......@@ -58,7 +59,7 @@
<definitions>
<context id="escape" style-ref="escape">
<match>\\((0-7){3}|(x[a-fA-F0-9]{2})|(c\S)|([CM]-\S)|(M-C-\S)|.)</match>
<match>\\([0-7]{3}|(x[a-fA-F0-9]{2})|(c\S)|([CM]-\S)|(M-C-\S)|.)</match>
</context>
<context id="multiline-comment" style-ref="comment" class="comment" class-disabled="no-spell-check">
......
#!/usr/bin/env ruby
#
puts "\141" # Shows 'a'
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment