Skip to content

Commit

Permalink
fist stab at asciidoc
Browse files Browse the repository at this point in the history
  • Loading branch information
scopatz committed Feb 23, 2014
1 parent ecfdac7 commit 9611872
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 0 deletions.
40 changes: 40 additions & 0 deletions asciidoc.nanorc
Original file line number Diff line number Diff line change
@@ -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}"
1 change: 1 addition & 0 deletions nanorc
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
include ~/.nano/apacheconf.nanorc
include ~/.nano/asciidoc.nanorc
include ~/.nano/asm.nanorc
include ~/.nano/awk.nanorc
include ~/.nano/c.nanorc
Expand Down

0 comments on commit 9611872

Please sign in to comment.