Skip to content

Commit

Permalink
Merge pull request #26 from davidhcefx/tab-ext
Browse files Browse the repository at this point in the history
enh: specify `tabgives` for certain languages
  • Loading branch information
galenguyer authored Apr 5, 2024
2 parents 61d733d + 49d8436 commit 05c339f
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 2 deletions.
1 change: 1 addition & 0 deletions go.nanorc
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
syntax "GO" "\.go$"
comment "//"
tabgives " "

color brightblue "[A-Za-z_][A-Za-z0-9_]*[[:space:]]*[()]"
color brightblue "\<(append|cap|close|complex|copy|delete|imag|len)\>"
Expand Down
1 change: 1 addition & 0 deletions makefile.nanorc
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ syntax "Makefile" "([Mm]akefile|\.ma?k)$"
header "^#!.*/(env +)?[bg]?make( |$)"
magic "makefile script"
comment "#"
tabgives " "

color cyan "\<(ifeq|ifdef|ifneq|ifndef|else|endif)\>"
color cyan "^(export|include|override)\>"
Expand Down
2 changes: 1 addition & 1 deletion prolog.nanorc
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
## Here is a prolog example.

syntax "prolog" "\.pl$"
syntax "prolog" "\.pl$" "\.pro$"
comment "%"

# Reset everything
Expand Down
2 changes: 1 addition & 1 deletion verilog.nanorc
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
# a starting point. I based verilog.nanorc off of c.nanorc and
# python.nanorc.

syntax "verilog" "\.(v|vh|sv|svh)$"
syntax "verilog" "\.(v|vh|vlg|verilog|sv|svh)$"

# I don't think we want this.
#color brightred "\<[A-Z_][0-9A-Z_]+\>"
Expand Down
1 change: 1 addition & 0 deletions yaml.nanorc
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
syntax "yaml" "\.ya?ml$"
#comment "#"
header "^---" "%YAML"
tabgives " "

# Values
color green "(:|^|\s)+\S+"
Expand Down

0 comments on commit 05c339f

Please sign in to comment.