Skip to content

Commit 843be17

Browse files
authored
Merge pull request #10 from davidhcefx/fix-regex-gal
fix: Force all syntax regex to ends with `$`
2 parents eec2737 + 5fc9e99 commit 843be17

19 files changed

+19
-19
lines changed

Rnw.nanorc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
## Here is a short example for TeX files.
22
##
3-
syntax "Tex" "\.Rnw$" "bib" "\.bib$" "cls" "\.cls$"
3+
syntax "Tex" "\.Rnw$" "bib$" "\.bib$" "cls$" "\.cls$"
44
color yellow "\$(\\\$|[^$])*[^\\]\$"
55
color yellow "\$\$(\\\$|[^$])*[^\\]\$\$"
66
icolor green "\\.|\\[A-Z]*"

apacheconf.nanorc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Apache files
2-
syntax "Apacheconf" "httpd\.conf|mime\.types|vhosts\.d\\*|\.htaccess"
2+
syntax "Apacheconf" "(httpd\.conf|mime\.types|vhosts\.d\\*|\.htaccess)$"
33
color yellow ".+"
44
color brightcyan "(AcceptMutex|AcceptPathInfo|AccessFileName|Action|AddAlt|AddAltByEncoding|AddAltByType|AddCharset|AddDefaultCharset|AddDescription|AddEncoding)"
55
color brightcyan "(AddHandler|AddIcon|AddIconByEncoding|AddIconByType|AddInputFilter|AddLanguage|AddModuleInfo|AddOutputFilter|AddOutputFilterByType|AddType|Alias|AliasMatch)"

beancount.nanorc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
syntax "Beancount" "(^|\.|/)beancount|bnct|bc$"
1+
syntax "Beancount" "(^|\.|/)(beancount|bnct|bc)$"
22

33
# directives
44
color red "^([0-9]{4}-[0-9]{2}-[0-9]{2} | )?[a-z-]+( |: )"

c.nanorc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
## Here is an example for C/C++.
22
##
3-
syntax "C" "\.(c(c|pp|xx)?|C)$" "\.(h(h|pp|xx)?|H)$" "\.ii?$" "\.(def)$" "\.ino"
3+
syntax "C" "\.(c(c|pp|xx)?|C)$" "\.(h(h|pp|xx)?|H)$" "\.ii?$" "\.(def)$" "\.ino$"
44
magic "^(C|C\+\+) (source|program)"
55
comment "//"
66
color brightred "\<[A-Z_][0-9A-Z_]+\>"

clojure.nanorc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
## Clojure Syntax Highlighting
22
##
33

4-
syntax "clojure" "\.((clj[s|c]?)|edn)"
4+
syntax "clojure" "\.((clj[s|c]?)|edn)$"
55

66
icolor green "defn? [0-9A-Z_]+"
77

conky.nanorc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
## Syntax highlighting for conkyrc files.
33
##
44
##
5-
syntax "Conky" "(\.*conkyrc.*$|conky.conf)"
5+
syntax "Conky" "(\.*conkyrc.*|conky.conf)$"
66

77
## Configuration items
88
color green "\<(alignment|append_file|background|border_inner_margin|border_outer_margin|border_width|color0|color1|color2|color3|color4|color5|color6|color7|color8|color9|colorN|cpu_avg_samples|default_bar_height|default_bar_width|default_color|default_gauge_height|default_gauge_width|default_graph_height|default_graph_width|default_outline_color|default_shade_color|diskio_avg_samples|display|double_buffer|draw_borders|draw_graph_borders|draw_outline|draw_shades|extra_newline|font|format_human_readable|gap_x|gap_y|http_refresh|if_up_strictness|imap|imlib_cache_flush_interval|imlib_cache_size|lua_draw_hook_post|lua_draw_hook_pre|lua_load|lua_shutdown_hook|lua_startup_hook|mail_spool|max_port_monitor_connections|max_text_width|max_user_text|maximum_width|minimum_height|minimum_width|mpd_host|mpd_password|mpd_port|music_player_interval|mysql_host|mysql_port|mysql_user|mysql_password|mysql_db|net_avg_samples|no_buffers|nvidia_display|out_to_console|out_to_http|out_to_ncurses|out_to_stderr|out_to_x|override_utf8_locale|overwrite_file|own_window|own_window_class|own_window_colour|own_window_hints|own_window_title|own_window_transparent|own_window_type|pad_percents|pop3|sensor_device|short_units|show_graph_range|show_graph_scale|stippled_borders|temperature_unit|template|template0|template1|template2|template3|template4|template5|template6|template7|template8|template9|text|text_buffer_size|times_in_seconds|top_cpu_separate|top_name_width|total_run_times|update_interval|update_interval_on_battery|uppercase|use_spacer|use_xft|xftalpha|xftfont)\>"

csh.nanorc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
## Here is an example for c-shell scripts.
22
##
3-
syntax "CSH" "\.csh$" "\.tcshrc" "\.cshrc" "\.login" "\.logout" "\.history"
3+
syntax "CSH" "\.csh$" "\.tcshrc$" "\.cshrc$" "\.login$" "\.logout$" "\.history$"
44
header "^#!.*/(env +)?(t)?csh( |$)"
55

66
color green "\<(break|breaksw|case|continue|default|else|end|endif|endsw|exec|exit|foreach|goto|if|repeat|shift|switch|then|while)\>"

dotenv.nanorc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
##
33
## Derived from sh.nanorc
44
##
5-
syntax "dotenv" "\.env" "\.env\..+"
5+
syntax "dotenv" "\.env$" "^\.env\..+$"
66

77
color green "(\(|\)|\$|=)"
88
color brightyellow ""(\\.|[^"])*"" "'(\\.|[^'])*'"

git.nanorc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ color ,green "[[:space:]]+$"
5050

5151

5252
# This syntax format is used for interactive rebasing
53-
syntax "git-rebase-todo" "git-rebase-todo"
53+
syntax "git-rebase-todo" "git-rebase-todo$"
5454

5555
# Default
5656
color yellow ".*"

groff.nanorc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
## Here is an example for groff.
22
##
3-
syntax "Groff" "\.m[ems]$" "\.rof" "\.tmac$" "^tmac."
3+
syntax "Groff" "\.m[ems]$" "\.rof$" "\.tmac$" "^tmac."
44
comment ".\""
55

66
## The argument of .ds or .nr

0 commit comments

Comments
 (0)