diff --git a/moo/mooedit/gtksourceview/gtksourcecontextengine.c b/moo/mooedit/gtksourceview/gtksourcecontextengine.c
index bb4221c1..262f4ee4 100644
--- a/moo/mooedit/gtksourceview/gtksourcecontextengine.c
+++ b/moo/mooedit/gtksourceview/gtksourcecontextengine.c
@@ -53,7 +53,7 @@
/* Regex used to match "\%{...@start}". */
#define START_REF_REGEX "(?
+
+
+
+
@@ -36,7 +40,7 @@
\\( # leading backslash
[\\\"\'nrtfav\?e] | # escaped character
- [0-7]{1,3} | # on, two, or three octal digits
+ [0-7]{1,3} | # one, two, or three octal digits
x[0-9A-Fa-f]{0,2} # 'x' followed by zero, one, or two hex digits
)
@@ -121,11 +125,40 @@
'(\%{escaped-character}|.)'
-
-
-
-
-
+
+
+
+ (?<![\w\.])
+ ((\.[0-9]+ | [0-9]+\.[0-9]*) ([Ee][+-]?[0-9]*)? |
+ ([0-9]+[Ee][+-]?[0-9]*))
+ [fFlL]?
+ (?![\w\.])
+
+
+
+
+
+ (?<![\w\.])
+ 0[xX][a-fA-F0-9]+[uUlL]*
+ (?![\w\.])
+
+
+
+
+
+ (?<![\w\.])
+ 0[0-7]+[uUlL]*
+ (?![\w\.])
+
+
+
+
+
+ (?<![\w\.])
+ [0-9]+[uUlL]*
+ (?![\w\.])
+
+
diff --git a/moo/mooedit/language-specs/def.lang b/moo/mooedit/language-specs/def.lang
index aa0b2ca7..046093ef 100644
--- a/moo/mooedit/language-specs/def.lang
+++ b/moo/mooedit/language-specs/def.lang
@@ -26,25 +26,16 @@
$^
-
-
- \b
+
([1-9][0-9]* | 0)
- (u (ll?)? | ll? u?)?
- \b
-
- \b
+
0 [0-7]+
- (u (ll?)? | ll? u?)?
- \b
-
- \b
- 0x [0-9a-f]+
- (u (ll?)? | ll? u?)?
- \b
+
+ 0 [xX] [0-9a-fA-F]+
+
\b
([0-9]+ e [-+]? [0-9]+ |
diff --git a/moo/mooedit/language-specs/latex.lang b/moo/mooedit/language-specs/latex.lang
index eb3db752..b8977a39 100644
--- a/moo/mooedit/language-specs/latex.lang
+++ b/moo/mooedit/language-specs/latex.lang
@@ -6,11 +6,67 @@
-
+
+
+ \\
+
+ begin
+ end
+ documentclass
+ newcommand
+ newenvironment
+ newtheorem
+ newfont
+ part
+ chapter
+ section
+ subsection
+ subsubsection
+ paragraph
+ subparagraph
+ page
+ equation
+ figure
+ table
+ footnote
+ footnotemark
+ footnotetext
+ mpfootnote
+ enumi
+ enumii
+ enumiii
+ enumiv
+ label
+ pageref
+ ref
+ onecolumn
+ twocolumn
+
+
+
+ \\
+
+
+ \$
+ &
+ %
+ #
+ _
+ \{
+ \}
+ ~
+ \^
+ \\
+
+
+
+ \\[a-zA-Z]+
+
+
@@ -33,11 +89,21 @@
\$\$
\$\$
+
+
+
+
+
\$
\$
+
+
+
+
+
@@ -69,62 +135,9 @@
usepackage
-
- \\
-
- begin
- end
- documentclass
- newcommand
- newenvironment
- newtheorem
- newfont
- part
- chapter
- section
- subsection
- subsubsection
- paragraph
- subparagraph
- page
- equation
- figure
- table
- footnote
- footnotemark
- footnotetext
- mpfootnote
- enumi
- enumii
- enumiii
- enumiv
- label
- pageref
- ref
- onecolumn
- twocolumn
-
-
-
- \\
-
-
- \$
- &
- %
- #
- _
- \{
- \}
- ~
- \^
- \\
-
-
-
- \\[a-zA-Z]+
-
-
+
+
+
diff --git a/moo/mooedit/language-specs/xml.lang b/moo/mooedit/language-specs/xml.lang
index 5b971cf5..e90cb26e 100644
--- a/moo/mooedit/language-specs/xml.lang
+++ b/moo/mooedit/language-specs/xml.lang
@@ -140,6 +140,5 @@
- <>