gtksourceview r1961 - in trunk: . gtksourceview/language-specs
- From: muntyan svn gnome org
- To: svn-commits-list gnome org
- Subject: gtksourceview r1961 - in trunk: . gtksourceview/language-specs
- Date: Wed, 18 Jun 2008 16:36:21 +0000 (UTC)
Author: muntyan
Date: Wed Jun 18 16:36:21 2008
New Revision: 1961
URL: http://svn.gnome.org/viewvc/gtksourceview?rev=1961&view=rev
Log:
2008-06-18 Yevgen Muntyan <muntyan tamu edu>
* gtksourceview/language-specs/sh.lang: do not treat <<< as
here-document start. Bug #538762.
Modified:
trunk/ChangeLog
trunk/gtksourceview/language-specs/sh.lang
Modified: trunk/gtksourceview/language-specs/sh.lang
==============================================================================
--- trunk/gtksourceview/language-specs/sh.lang (original)
+++ trunk/gtksourceview/language-specs/sh.lang Wed Jun 18 16:36:21 2008
@@ -125,10 +125,13 @@
<context id="here-doc">
<start extended="true" dupnames="true">
+ # (?<!<) and [^\s<] are for not matching
+ # here-word (<<<)
+ (?<!<)
<<-?\s*\\?(
- \"(?P<HDB>\S+)\" | # "EOF"
- \'(?P<HDB>\S+)\' | # 'EOF'
- (?P<HDB>\S+) # EOF
+ \"(?P<HDB>[^\s<]+)\" | # "EOF"
+ \'(?P<HDB>[^\s<]+)\' | # 'EOF'
+ (?P<HDB>[^\s<]+) # EOF
)$
</start>
<end>^\t*\%{HDB start}$</end>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]