From c06c2b0a4f9c2be12e7dcb5efdd426ea415e4913 Mon Sep 17 00:00:00 2001 From: Dante Falzone <48266179+DanteFalzone0@users.noreply.github.com> Date: Wed, 25 Dec 2019 21:55:19 -0600 Subject: [PATCH 1/2] Added syntax highlighting for javadoc --- java.nanorc | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/java.nanorc b/java.nanorc index 46e5dd5..912c5d5 100644 --- a/java.nanorc +++ b/java.nanorc @@ -13,4 +13,10 @@ icolor yellow "\b(([1-9][0-9]+)|0+)\.[0-9]+\b" "\b[1-9][0-9]*\b" "\b0[0-7]*\b" " color blue "^\s*//.*" color blue start="/\*" end="\*/" color brightblue start="/\*\*" end="\*/" + +# Highlighting for javadoc stuff +color magenta "@param [a-zA-Z_][a-z0-9A-Z_]+" +color magenta "@return" +color magenta "@author.*" + color ,green "[[:space:]]+$" From 8959baefff1470fd996522241d61d60a5508e8c6 Mon Sep 17 00:00:00 2001 From: Dante Falzone <48266179+DanteFalzone0@users.noreply.github.com> Date: Wed, 25 Dec 2019 21:57:14 -0600 Subject: [PATCH 2/2] added documentation comments to c.nanorc --- c.nanorc | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/c.nanorc b/c.nanorc index 22ffea6..728dac6 100644 --- a/c.nanorc +++ b/c.nanorc @@ -40,5 +40,10 @@ color cyan "<[^= ]*>" ""(\\.|[^"])*"" color brightblue "^\s*//.*" color brightblue start="/\*" end="\*/" +# Highlighting for documentation comments +color magenta "@param [a-zA-Z_][a-z0-9A-Z_]+" +color magenta "@return" +color magenta "@author.*" + ## Trailing whitespace color ,green "[[:space:]]+$"