Skip to content
/ nanorc Public
forked from scopatz/nanorc

Commit

Permalink
Fix regex error in Rnw.nanorc
Browse files Browse the repository at this point in the history
An error would show up:
Error en /home/user/.nano/Rnw.nanorc en la línea 19: Regex «([a-zA-Z0-9_-.$]*)\(» incorrecta: Final de rango inválido
The regex was invalid.
  • Loading branch information
vpont authored Oct 2, 2019
1 parent 37c5b36 commit 1c96a48
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Rnw.nanorc
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ color green "(class|extends|goto) ([a-zA-Z0-9_]*)"
color green "[^a-z0-9_-]{1}(var|class|function|echo|case|break|default|exit|switch|if|else|elseif|endif|foreach|endforeach|@|while|public|private|protected|return|true|false|null|TRUE|FALSE|NULL|const|static|extends|as|array|require|include|require_once|include_once|define|do|continue|declare|goto|print|in|namespace|use)[^a-z0-9_-]{1}"

# Functions
color blue "([a-zA-Z0-9_-.$]*)\("
color blue "([a-zA-Z0-9_\-$\.]*)\("

# Variables
color magenta "[a-zA-Z_0-9]* <\-"
Expand Down

0 comments on commit 1c96a48

Please sign in to comment.