Skip to content

Instantly share code, notes, and snippets.

@PowerKiKi
Created December 20, 2017 16:48
Show Gist options
  • Select an option

  • Save PowerKiKi/eee7387b10ce2785750b7b6edb458afd to your computer and use it in GitHub Desktop.

Select an option

Save PowerKiKi/eee7387b10ce2785750b7b6edb458afd to your computer and use it in GitHub Desktop.

Revisions

  1. PowerKiKi created this gist Dec 20, 2017.
    20 changes: 20 additions & 0 deletions .nanorc
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,20 @@
    syntax "gitcommit" "COMMIT_EDITMSG$"
    color white "#.*"
    color green "#.(new file|modified|deleted|renamed).*"
    color yellow start="# Changes.*" end="# Changed.*"
    color cyan start="# Untracked.*" end="diff"
    color cyan start="# Untracked.*" end="$$"
    color brightred "^deleted file mode .*"
    color brightgreen "^\+.*"
    color brightred "^-.*"
    color brightyellow "^(diff|index|---|\+\+\+).*"
    color brightmagenta "@@.*@@"
    color white "# (Change[ds]|Untracked) .*"
    color white "#.*\(use .*"
    color white "^#"

    # overlong lines which are not comments
    color brightred "^[^#].{80,}.+$"

    # issue number with optionnal closing keyword: https://help.github.com/articles/closing-issues-using-keywords/
    icolor yellow "((close|closes|closed|fix|fixes|fixed|resolve|resolves|resolved) )?#[1234567890]+"