From a2bd191696e1d035dacd123feb0651d9250c7153 Mon Sep 17 00:00:00 2001 From: "Andrew V. Samoilov" Date: Thu, 21 Mar 2002 08:01:14 +0000 Subject: [PATCH] * syntax/c.syntax: Highlight "%p" printf format. Allow '*' as width and precision for strings and numbers. --- ChangeLog | 3 +++ syntax/c.syntax | 7 ++++--- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/ChangeLog b/ChangeLog index 4a2171016..384357ad4 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,8 @@ 2002-03-21 Andrew V. Samoilov + * syntax/c.syntax: Highlight "%p" printf format. + Allow '*' as width and precision for strings and numbers. + * doc/mc.1.in: Fix smbfs example. Minor format fixes. * doc/ru/mc.1.in: Likewise. diff --git a/syntax/c.syntax b/syntax/c.syntax index d960cee4e..ef71a5869 100644 --- a/syntax/c.syntax +++ b/syntax/c.syntax @@ -107,12 +107,13 @@ context " " green/6 keyword \\" brightgreen/16 keyword \\\n brightgreen/16 keyword %% brightgreen/16 - keyword %\[#0\s-\+,\]\[0123456789\]\[.\]\[0123456789\]\[L\]\{eEfgGoxX\} brightgreen/16 - keyword %\[0\s-\+,\]\[0123456789\]\[.\]\[0123456789\]\[hl\]\{diu\} brightgreen/16 + keyword %\[#0\s-\+,\]\[0123456789\*\]\[.\]\[0123456789\*\]\[L\]\{eEfgGoxX\} brightgreen/16 + keyword %\[0\s-\+,\]\[0123456789\*\]\[.\]\[0123456789\*\]\[hl\]\{diu\} brightgreen/16 keyword %\[hl\]n brightgreen/16 - keyword %\[.\]\[0123456789\]s brightgreen/16 + keyword %\[.\]\[0123456789\*\]s brightgreen/16 keyword %[*] brightgreen/16 keyword %c brightgreen/16 + keyword %p brightgreen/16 keyword \\\{0123\}\{01234567\}\{01234567\} brightgreen/16 keyword \\\\ brightgreen/16 keyword \\' brightgreen/16