From 9611872cd24f85ffd3e0218d4bcfe42099cdcda9 Mon Sep 17 00:00:00 2001 From: Anthony Scopatz Date: Sat, 22 Feb 2014 19:26:13 -0600 Subject: [PATCH] fist stab at asciidoc --- asciidoc.nanorc | 40 ++++++++++++++++++++++++++++++++++++++++ nanorc | 1 + 2 files changed, 41 insertions(+) create mode 100644 asciidoc.nanorc diff --git a/asciidoc.nanorc b/asciidoc.nanorc new file mode 100644 index 0000000..5b97a3f --- /dev/null +++ b/asciidoc.nanorc @@ -0,0 +1,40 @@ +syntax "asciidoc" "\.(asc|asciidoc)$" + +# main header +color red "^====+$" +# h1 +color red "^==[[:space:]].*$" +color red "^----+$" +# h2 +color magenta "^===[[:space:]].*$" +color magenta "^~~~~+$" +# h4 +color green "^====[[:space:]].*$" +color green "^\^\^\^\^+$" +# h5 +color brightblue "^=====[[:space:]].*$" +color brightblue "^\+\+\+\++$" + +# attributes +color brightgreen ":.*:" +color brightred "\{[a-z0-9]*\}" +color red "\\\{[a-z0-9]*\}" +color red "\+\+\+\{[a-z0-9]*\}\+\+\+" + +# Paragraph Title +color yellow "^\..*$" + +# source +color magenta "^\[(source,.+|NOTE|TIP|IMPORTANT|WARNING|CAUTION)\]" + +# Other markup +color yellow ".*\+$" +color yellow "_.+_" +color yellow "\*.+\*" +color yellow "\+.+\+" +color yellow "`.+`" +color yellow "\^.+\^" +color yellow "~.+~" +color yellow "'.+'" + +color cyan "`{1,2}.+'{1,2}" diff --git a/nanorc b/nanorc index 264da2d..ef30a6a 100644 --- a/nanorc +++ b/nanorc @@ -1,4 +1,5 @@ include ~/.nano/apacheconf.nanorc +include ~/.nano/asciidoc.nanorc include ~/.nano/asm.nanorc include ~/.nano/awk.nanorc include ~/.nano/c.nanorc