From 7d8b17832a91c90a58ba7b1c1357f67c18a2e52c Mon Sep 17 00:00:00 2001 From: Dante Falzone <48266179+DanteFalzone0@users.noreply.github.com> Date: Thu, 27 Aug 2020 09:17:08 -0500 Subject: [PATCH 1/3] Fixed highlighting of inline comments in c.nanorc --- c.nanorc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/c.nanorc b/c.nanorc index 4ddd554..f99bf8f 100644 --- a/c.nanorc +++ b/c.nanorc @@ -3,7 +3,7 @@ syntax "C" "\.(c(c|pp|xx)?|C)$" "\.(h(h|pp|xx)?|H)$" "\.ii?$" "\.(def)$" "\.ino" magic "^(C|C\+\+) (source|program)" comment "//" -color brightred "\<[A-Z_][0-9A-Z_]+\>" +color brightred "\<[A-Z_][0-9A-Z_]+\>" color green "\<(float|double|bool|char|wchar_t|int|short|long|sizeof|enum|void|static|const|struct|union|typedef|extern|(un)?signed|inline)\>" color green "\<((s?size)|(char(16|32))|((u_?)?int(_fast|_least)?(8|16|32|64))|u?int(max|ptr))_t\>" color green "\<(class|namespace|template|public|protected|private|typename|this|friend|virtual|using|mutable|volatile|register|explicit)\>" @@ -21,7 +21,7 @@ color brightmagenta "'([^'\]|(\\["'abfnrtv\\]))'" "'\\(([0-3]?[0-7]{1,2}))'" "'\ color green "__attribute__[[:space:]]*\(\([^)]*\)\)" "__(aligned|asm|builtin|hidden|inline|packed|restrict|section|typeof|weak)__" #Operator Color -color yellow "[.:;,+*|=!\%]" "<" ">" "/" "-" "&" +color yellow "[.:;,+*|=!\%]" "<" ">" "/" "-" "&" #Parenthetical Color color magenta "[(){}]" "\[" "\]" @@ -37,7 +37,7 @@ color cyan "<[^= ]*>" ""(\\.|[^"])*"" #color cyan start=""(\\.|[^"])*\\[[:space:]]*$" end="^(\\.|[^"])*"" ## Comment highlighting -color brightblue "^\s*//.*" +color brightblue "//.*" color brightblue start="/\*" end="\*/" # Highlighting for documentation comments From 4980f572394df48d49e3157e2159645b26045135 Mon Sep 17 00:00:00 2001 From: Dante Falzone <48266179+DanteFalzone0@users.noreply.github.com> Date: Thu, 27 Aug 2020 09:18:20 -0500 Subject: [PATCH 2/3] Fixed higlighting of inline comments in java.nanorc --- java.nanorc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java.nanorc b/java.nanorc index c22894a..fe3f286 100644 --- a/java.nanorc +++ b/java.nanorc @@ -10,7 +10,7 @@ color cyan "\<(abstract|class|extends|final|implements|import|instanceof|interfa color red ""[^"]*"" color yellow "\<(true|false|null)\>" icolor yellow "\b(([1-9][0-9]+)|0+)\.[0-9]+\b" "\b[1-9][0-9]*\b" "\b0[0-7]*\b" "\b0x[1-9a-f][0-9a-f]*\b" -color blue "^\s*//.*" +color blue "//.*" color blue start="^\s*/\*" end="\*/" color brightblue start="/\*\*" end="\*/" From 09d9216ff59e213a0c4eaacfcb8771b7deab3d99 Mon Sep 17 00:00:00 2001 From: Dante Falzone <48266179+DanteFalzone0@users.noreply.github.com> Date: Thu, 27 Aug 2020 09:19:51 -0500 Subject: [PATCH 3/3] Fixed highlighting of inline comments in javascript.nanorc --- javascript.nanorc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/javascript.nanorc b/javascript.nanorc index 0f5c236..39ce3a0 100644 --- a/javascript.nanorc +++ b/javascript.nanorc @@ -17,7 +17,7 @@ color green "\<(Number|Object|RegExp|String)\>" color red "[-+/*=<>!~%?:&|]" color magenta "/[^*]([^/]|(\\/))*[^\\]/[gim]*" color magenta "\\[0-7][0-7]?[0-7]?|\\x[0-9a-fA-F]+|\\[bfnrt'"\?\\]" -color brightblack "(^|[[:space:]])//.*" +color brightblack "//.*" color brightblack "/\*.+\*/" color brightwhite,cyan "TODO:?" color yellow ""(\\.|[^"])*"|'(\\.|[^'])*'|(`|\})(\\.|[^`$]|$[^{])*(\$\{|`)"