diff --git a/LICENSE b/LICENSE old mode 100644 new mode 100755 diff --git a/bash_aliases b/bash_aliases new file mode 100755 index 0000000..8def0db --- /dev/null +++ b/bash_aliases @@ -0,0 +1,62 @@ +# DNF alias +alias upd="sudo dnf update" +alias ins="sudo dnf install" +alias rmv="sudo dnf remove" +alias ser="dnf search" + + + +# History alias +cl () { + FILE=$HOME/.bash_history + if [ -f "$FILE" ]; then + rm $FILE + clear + history -cw + else + clear + history -cw + fi + } + + + +# Emacs no gui +alias emacs="emacs -nw $argv" +alias e="emacs -nw $argv" + + + +# Quick way to get out of current directory +alias cd..='cd ..' +alias ..="cd .." +alias ...="cd ../../../" +alias ....="cd ../../../../" +alias .....="cd ../../../../" +alias .4="cd ../../../../" +alias .5="cd ../../../../.." + + + +# Colorize the grep command output for ease of use (good for log files) +alias grep="grep --color=auto" + + + +# Make mount command output pretty and human readable format +alias mount="mount |column -t" + + + +# Stop after sending count ECHO_REQUEST packets +alias ping="ping -c 5" + + + +# Displays the size of each item, and then sorts it by size, in a single column, with a notation to indicate the kind of file +alias lt='ls --human-readable --size -1 -S --classify' + + + +# Copy progress bar +alias cpv='rsync -ah --info=progress2' diff --git a/emacs.d/bookmarks b/emacs.d/bookmarks new file mode 100755 index 0000000..40e302a --- /dev/null +++ b/emacs.d/bookmarks @@ -0,0 +1,100 @@ +;;;; Emacs Bookmark Format Version 1;;;; -*- coding: utf-8-emacs; mode: lisp-data -*- +;;; This format is meant to be slightly human-readable; +;;; nevertheless, you probably don't want to edit it. +;;; -*- End Of Bookmark File Format Version Stamp -*- +(("Projeler -> Projeler dizini" + (filename . "~/Projeler/") + (front-context-string . "my-dot-files\n d") + (rear-context-string . "60 Kas 7 15:39 ") + (position . 169)) +("Emacs Shortcut -> 8 Doom" + (filename . "~/Belgeler/ORG/Emacs Shortcut.org") + (front-context-string . "** Doom emacs kı") + (rear-context-string . "--------------|\n") + (position . 6623)) +("Emacs Shortcut -> 7 Help" + (filename . "~/Belgeler/ORG/Emacs Shortcut.org") + (front-context-string . "** Yardım kısayo") + (rear-context-string . "--------------|\n") + (position . 6048)) +("Emacs Shortcut -> 6 Bracket" + (filename . "~/Belgeler/ORG/Emacs Shortcut.org") + (front-context-string . "** Parantez üzer") + (rear-context-string . "--------------|\n") + (position . 5410)) +("Emacs Shortcut -> 5 Window" + (filename . "~/Belgeler/ORG/Emacs Shortcut.org") + (front-context-string . "** Pencere kısay") + (rear-context-string . "--------------|\n") + (position . 3463)) +("Emacs Shortcut -> 4 Searching" + (filename . "~/Belgeler/ORG/Emacs Shortcut.org") + (front-context-string . "** Arama kısayol") + (rear-context-string . "--------------|\n") + (position . 3204)) +("Emacs Shortcut -> 3 Moving" + (filename . "~/Belgeler/ORG/Emacs Shortcut.org") + (front-context-string . "** Hareket kısay") + (rear-context-string . "--------------|\n") + (position . 2269)) +("Emacs Shortcut -> 2 Editing" + (filename . "~/Belgeler/ORG/Emacs Shortcut.org") + (front-context-string . "** Düzenleme kıs") + (rear-context-string . "--------------|\n") + (position . 868)) +("Emacs Shortcut -> 1 File" + (filename . "~/Belgeler/ORG/Emacs Shortcut.org") + (front-context-string . "** Dosya kısayol") + (rear-context-string . "-+------------|\n") + (position . 432)) +("Emacs Shortcut -> 0 Descriptions" + (filename . "~/Belgeler/ORG/Emacs Shortcut.org") + (front-context-string . "** Emacs kısayol") + (rear-context-string . "büyük yazıldı.\n\n") + (position . 173)) +("Emacs -> 6 Shortcut" + (filename . "~/.emacs.d/init.el") + (front-context-string . "(global-set-key ") + (rear-context-string . "==============\n\n") + (position . 16851)) +("Emacs Shortcut" + (filename . "~/Belgeler/ORG/Emacs Shortcut.org") + (front-context-string . "#+title: Emacs K") + (rear-context-string) + (position . 1)) +("Emacs -> 7 Load .el files" + (filename . "~/.emacs.d/init.el") + (front-context-string) + (rear-context-string . "================") + (position . 18567)) +("Emacs -> 5 Hooks" + (filename . "~/.emacs.d/init.el") + (front-context-string . "(add-hook 'cloju") + (rear-context-string . "==============\n\n") + (position . 16320)) +("Emacs -> 4 Buffer" + (filename . "~/.emacs.d/init.el") + (front-context-string . ";; Complete file") + (rear-context-string . "==============\n\n") + (position . 14630)) +("Emacs -> 3 Editing" + (filename . "~/.emacs.d/init.el") + (front-context-string . ";; Make typing d") + (rear-context-string . "==============\n\n") + (position . 5285)) +("Emacs -> 2 Interface" + (filename . "~/.emacs.d/init.el") + (front-context-string . ";; Hide welcome ") + (rear-context-string . "==============\n\n") + (position . 1821)) +("Emacs -> 1 Package" + (filename . "~/.emacs.d/init.el") + (front-context-string . ";; Package signa") + (rear-context-string . "==============\n\n") + (position . 230)) +("Emacs -> 0 init.el" + (filename . "~/.emacs.d/init.el") + (front-context-string . "22/10/2023\n;;;;;") + (rear-context-string . "e\n;; Edit: ") + (position . 101)) +) diff --git a/emacs.d/init.el b/emacs.d/init.el new file mode 100755 index 0000000..9254570 --- /dev/null +++ b/emacs.d/init.el @@ -0,0 +1,415 @@ +;;; ===================== ;;; +;;; Author: Muha Aliss ;;; +;;; Mail: muhaaliss@pm.me ;;; +;;; Edit: 10/10/2023 ;;; +;;; ===================== ;;; + + + +;;; ===================== ;;; +;;; Package ;;; +;;; ===================== ;;; + +;; Package signature check disable +(setq package-check-signature nil) + +;; Edit package sources +(require 'package) +(add-to-list 'package-archives '("MELPA" . "https://melpa.org/packages/") t) + +;; Initializes the package infrastructure +(package-initialize) + +;; Define the package-selected-packages variable and assign the packages i want to it. +(setq package-selected-packages + '(gnu-elpa + gnu-elpa-keyring-update + use-package + doom-themes + bookmark + lsp-mode + yasnippet + lsp-treemacs + helm-lsp + projectile + hydra + flycheck + company + avy + which-key + helm-xref + all-the-icons + all-the-icons-dired + helm-icons + dap-mode)) + +;; Search packages in installed packages, +(when (cl-find-if-not #'package-installed-p package-selected-packages) + ; refresh packages list, + (package-refresh-contents) + ; install the packages. + (mapc #'package-install package-selected-packages)) + + + +;;; ===================== ;;; +;;; Interface ;;; +;;; ===================== ;;; + +;; Hide welcome screen +(setq inhibit-splash-screen t) + +;; Open bookmark window by default +(list-bookmarks) +(switch-to-buffer "*Bookmark List*") + +;; Display line numbers +(global-display-line-numbers-mode) + +;; Set cursor to i-beam +(setq-default cursor-type 'bar) + +;; Highlight Current Line +(global-hl-line-mode 1) + +;; Up/Down arrow move based on logical lines (newline char) or visual line +(setq line-move-visual nil) + +;; Show cursor position within line +(column-number-mode 1) + +;; org mode syntax color embeded source code +(setq org-src-fontify-natively t) + +;; Enable file icons +(use-package all-the-icons + :if (display-graphic-p)) + +;; Set a theme +(use-package doom-themes + :ensure t + :config + ; Global settings (defaults) + (setq doom-themes-enable-bold t ; if nil, bold is universally disabled + doom-themes-enable-italic t) ; if nil, italics is universally disabled + (load-theme 'doom-one t) + ; Enable flashing mode-line on errors + (doom-themes-visual-bell-config) + ; Enable custom neotree theme (all-the-icons must be installed!) + (doom-themes-neotree-config) + ; or for treemacs users + (setq doom-themes-treemacs-theme "doom-atom") ; use "doom-colors" for less minimal icon theme + (doom-themes-treemacs-config) + ; Corrects (and improves) org-mode's native fontification. + (doom-themes-org-config)) + +;; Set default window size +(if (display-graphic-p) + (progn + (setq initial-frame-alist + '( + (tool-bar-lines . 0) + (width . 110) ; chars + (height . 40) ; lines + (left . 787) + (top . 0))) + (setq default-frame-alist + '( + (tool-bar-lines . 0) + (width . 110) + (height . 40) + (left . 787) + (top . 0)))) + (progn + (setq initial-frame-alist '( (tool-bar-lines . 0))) + (setq default-frame-alist '( (tool-bar-lines . 0))))) + +;; Set default font +(cond + ((string-equal system-type "windows-nt") ; Microsoft Windows + (when (member "Consolas" (font-family-list)) + (set-frame-font "Consolas-12" t t))) + ((string-equal system-type "darwin") ; macOS + (when (member "Menlo" (font-family-list)) + (set-frame-font "Menlo-12" t t))) + ((string-equal system-type "gnu/linux") ; linux + (when (member "Source Code Pro" (font-family-list)) + (set-frame-font "Source Code Pro-12" t t)))) + + + +;;; ===================== ;;; +;;; Editing ;;; +;;; ===================== ;;; + +;; Turn on/off line wrap for current buffer. +(global-visual-line-mode 1) + +;; Make typing delete/overwrites selected text +(delete-selection-mode 1) + +;; Set default tab char's display width to 4 spaces +(setq-default tab-width 4) + +;; Make indent commands use space only (never tab character) +(setq-default indent-tabs-mode nil) + +;; Make tab key do indent first then completion. +(setq-default tab-always-indent nil) + +;; Set highlighting brackets +(show-paren-mode 1) +(setq show-paren-style 'mixed) + +;; Add support for pretty symbols mode +(global-prettify-symbols-mode 1) +(defun my-add-pretty-symbol () + "make some word display as Unicode symbols" + (setq prettify-symbols-alist + '( + ("->" . 8594) ; → 8594 + ("lambda" . 955) ; λ 955 + ("--->" . 10230) ; ⟶ 10230 + ("=>" . 8658) ; ⇒ 8658 + ("map" . 8614) ; ↦ 8614 + ))) + +;; Hippie expand to words only +(setq hippie-expand-try-functions-list + '( + try-expand-dabbrev + try-expand-dabbrev-all-buffers + ;; try-expand-dabbrev-from-kill + try-complete-lisp-symbol-partially + try-complete-lisp-symbol + try-complete-file-name-partially + try-complete-file-name + ;; try-expand-all-abbrevs + ;; try-expand-list + ;; try-expand-line + )) + +(use-package rustic + :ensure + :bind (:map rustic-mode-map + ("M-j" . lsp-ui-imenu) + ("M-?" . lsp-find-references) + ("C-c C-c l" . flycheck-list-errors) + ("C-c C-c a" . lsp-execute-code-action) + ("C-c C-c r" . lsp-rename) + ("C-c C-c q" . lsp-workspace-restart) + ("C-c C-c Q" . lsp-workspace-shutdown) + ("C-c C-c s" . lsp-rust-analyzer-status) + ("C-c C-c e" . lsp-rust-analyzer-expand-macro) + ("C-c C-c d" . dap-hydra) + ("C-c C-c h" . lsp-ui-doc-glance))) + +(defun rk/rustic-mode-hook () + ;; so that run C-c C-c C-r works without having to confirm, but don't try to + ;; save rust buffers that are not file visiting. Once + ;; https://github.com/brotzeit/rustic/issues/253 has been resolved this should + ;; no longer be necessary. + (when buffer-file-name + (setq-local buffer-save-without-query t)) + (add-hook 'before-save-hook 'lsp-format-buffer nil t)) + +;; for rust-analyzer integration +(use-package lsp-mode + :ensure + :commands lsp + :custom + ;; what to use when checking on-save. "check" is default, I prefer clippy + (lsp-rust-analyzer-cargo-watch-command "clippy") + (lsp-eldoc-render-all t) + (lsp-idle-delay 0.6) + ;; This controls the overlays that display type and other hints inline. Enable + ;; / disable as you prefer. Well require a `lsp-workspace-restart' to have an + ;; effect on open projects. + (lsp-rust-analyzer-server-display-inlay-hints t) + (lsp-rust-analyzer-display-lifetime-elision-hints-enable "skip_trivial") + (lsp-rust-analyzer-display-chaining-hints t) + (lsp-rust-analyzer-display-lifetime-elision-hints-use-parameter-names nil) + (lsp-rust-analyzer-display-closure-return-type-hints t) + (lsp-rust-analyzer-display-parameter-hints nil) + (lsp-rust-analyzer-display-reborrow-hints nil)) + +(use-package lsp-ui + :ensure + :commands lsp-ui-mode + :custom + (lsp-ui-peek-always-show t) + (lsp-ui-sideline-show-hover t) + (lsp-ui-doc-enable nil)) + +;; inline errors +(use-package flycheck :ensure) + + +;; auto-completion and code snippets +(use-package yasnippet + :ensure + :config + (yas-reload-all) + (add-hook 'prog-mode-hook 'yas-minor-mode) + (add-hook 'text-mode-hook 'yas-minor-mode)) + +(use-package company + :ensure + :bind + (:map company-active-map + ("C-n". company-select-next) + ("C-p". company-select-previous) + ("M-<". company-select-first) + ("M->". company-select-last)) + (:map company-mode-map + ("". tab-indent-or-complete) + ("TAB". tab-indent-or-complete))) + +(defun company-yasnippet-or-completion () + (interactive) + (or (do-yas-expand) + (company-complete-common))) + +(defun check-expansion () + (save-excursion + (if (looking-at "\\_>") t + (backward-char 1) + (if (looking-at "\\.") t + (backward-char 1) + (if (looking-at "::") t nil))))) + +(defun do-yas-expand () + (let ((yas/fallback-behavior 'return-nil)) + (yas/expand))) + +(defun tab-indent-or-complete () + (interactive) + (if (minibufferp) + (minibuffer-complete) + (if (or (not yas/minor-mode) + (null (do-yas-expand))) + (if (check-expansion) + (company-complete-common) + (indent-for-tab-command))))) + +;; Create / cleanup rust scratch projects quickly +(use-package rust-playground :ensure) + +;; for Cargo.toml and other config files +(use-package toml-mode :ensure) + +;; setting up debugging support with dap-mode +(use-package exec-path-from-shell + :ensure + :init (exec-path-from-shell-initialize)) + +(when (executable-find "lldb-mi") + (use-package dap-mode + :ensure + :config + (dap-ui-mode) + (dap-ui-controls-mode 1) + + (require 'dap-lldb) + (require 'dap-gdb-lldb) + ;; installs .extension/vscode + (dap-gdb-lldb-setup) + (dap-register-debug-template + "Rust::LLDB Run Configuration" + (list :type "lldb" + :request "launch" + :name "LLDB::Run" + :gdbpath "rust-lldb" + ;; uncomment if lldb-mi is not in PATH + ;; :lldbmipath "path/to/lldb-mi" + )))) + + + +;;; ===================== ;;; +;;; Buffer ;;; +;;; ===================== ;;; + +;; Complete file names, buffer names, or any other Emacs interactions +(helm-mode) +(helm-icons-enable) + +;; Change the functionality of some default functions. +(define-key global-map [remap find-file] #'helm-find-files) +(define-key global-map [remap execute-extended-command] #'helm-M-x) +(define-key global-map [remap switch-to-buffer] #'helm-mini) + +;; Shows key assignments in a mini window. +(which-key-mode) + +;; Garbage collector +(setq gc-cons-threshold (* 100 1024 1024) + read-process-output-max (* 1024 1024) + ;; more compact + treemacs-space-between-root-nodes nil + ;; less noise + lsp-completion-show-detail nil + ;; resonsibility + company-idle-delay 0.0 + company-minimum-prefix-length 1 + ;; clangd is fast + lsp-idle-delay 0.1) + +;; Use short answer +(if (version< emacs-version "28.1") + (defalias 'yes-or-no-p 'y-or-n-p) + (setq use-short-answers t)) + + + +;;; ===================== ;;; +;;; Hooks ;;; +;;; ===================== ;;; + +(add-hook 'tex-mode-hook 'my-add-pretty-symbol) +(add-hook 'emacs-lisp-mode-hook 'my-add-pretty-symbol) +(add-hook 'rust-mode-hook 'my-add-pretty-symbol) +(add-hook 'c-mode-hook 'my-add-pretty-symbol) +(add-hook 'python-mode-hook 'my-add-pretty-symbol) +(add-hook 'dired-mode-hook 'all-the-icons-dired-mode) +(add-hook 'c-mode-hook 'lsp) +(add-hook 'rust-mode-hook 'lsp) +(add-hook 'lsp-mode-hook 'lsp-ui-mode) +(add-hook 'lsp-mode-hook #'lsp-enable-which-key-integration) +(add-hook 'rustic-mode-hook 'rk/rustic-mode-hook) + + + +;;; ===================== ;;; +;;; Key bindings ;;; +;;; ===================== ;;; + +;; Hippie expand keybindings +(global-set-key (kbd "C-t") 'hippie-expand) + +;; Move line keybindings. +(global-set-key (kbd "M-") 'move-line-up) +(global-set-key (kbd "M-") 'move-line-down) + +;; Copy or cut current line if no selection keybindings +(global-set-key (kbd "") 'xah-cut-line-or-region) ; cut +(global-set-key (kbd "") 'xah-copy-line-or-region) ; copy +(global-set-key (kbd "") 'yank) ; paste + +;; Select current line keybinding +(global-set-key (kbd "M-7") 'xah-select-line) + +;; Delete batching bracket keybindings +(global-set-key (kbd "M-") 'xah-delete-forward-bracket-pairs) +(global-set-key (kbd "M-S-") 'xah-delete-backward-bracket-text) + +;; Goto matching bracket keybindings +(global-set-key (kbd "M-") 'xah-goto-matching-bracket) +(global-set-key (kbd "M-") 'xah-goto-matching-bracket) + + + +;;; ===================== ;;; +;;; Load other .el files ;;; +;;; ===================== ;;; +(load "~/.emacs.d/xah") diff --git a/emacs.d/xah.el b/emacs.d/xah.el new file mode 100755 index 0000000..caaa49d --- /dev/null +++ b/emacs.d/xah.el @@ -0,0 +1,258 @@ +(defun xah-select-line () + "Select current line. If region is active, extend selection downward by line. +If `visual-line-mode' is on, consider line as visual line. + +URL `http://xahlee.info/emacs/emacs/modernization_mark-word.html' +Version: 2017-11-01 2021-03-19 2023-07-16" + (interactive) + (if (region-active-p) + (if visual-line-mode + (let ((xp1 (point))) + (end-of-visual-line 1) + (when (eq xp1 (point)) + (end-of-visual-line 2))) + (progn + (forward-line 1) + (end-of-line))) + (if visual-line-mode + (progn (beginning-of-visual-line) + (push-mark (point) t t) + (end-of-visual-line)) + (progn + (push-mark (line-beginning-position) t t) + (end-of-line))))) + +;; Copy current line if no selection +(defun xah-copy-line-or-region () + "Copy current line or selection. +When called repeatedly, append copy subsequent lines. +When `universal-argument' is called first, copy whole buffer (respects `narrow-to-region'). + +URL `http://xahlee.info/emacs/emacs/emacs_copy_cut_current_line.html' +Version: 2010-05-21 2022-10-03" + (interactive) + (let ((inhibit-field-text-motion nil)) + (if current-prefix-arg + (progn + (copy-region-as-kill (point-min) (point-max))) + (if (region-active-p) + (progn + (copy-region-as-kill (region-beginning) (region-end))) + (if (eq last-command this-command) + (if (eobp) + (progn ) + (progn + (kill-append "\n" nil) + (kill-append + (buffer-substring-no-properties (line-beginning-position) (line-end-position)) + nil) + (progn + (end-of-line) + (forward-char)))) + (if (eobp) + (if (eq (char-before) 10 ) + (progn ) + (progn + (copy-region-as-kill (line-beginning-position) (line-end-position)) + (end-of-line))) + (progn + (copy-region-as-kill (line-beginning-position) (line-end-position)) + (end-of-line) + (forward-char)))))))) + +;; Cut current line if no selection +(defun xah-cut-line-or-region () + "Cut current line or selection. +When `universal-argument' is called first, cut whole buffer (respects `narrow-to-region'). + +URL `http://xahlee.info/emacs/emacs/emacs_copy_cut_current_line.html' +Version: 2010-05-21 2015-06-10" + (interactive) + (if current-prefix-arg + (progn ; not using kill-region because we don't want to include previous kill + (kill-new (buffer-string)) + (delete-region (point-min) (point-max))) + (progn (if (region-active-p) + (kill-region (region-beginning) (region-end) t) + (kill-region (line-beginning-position) (line-beginning-position 2)))))) + +;; Move the current line up or down by N lines. +(defun move-line (n) + (interactive "p") + (setq col (current-column)) + (beginning-of-line) (setq start (point)) + (end-of-line) (forward-char) (setq end (point)) + (let ((line-text (delete-and-extract-region start end))) + (forward-line n) + (insert line-text) + ;; restore point to original column in moved line + (forward-line -1) + (forward-char col))) + +(defmacro save-column (&rest body) + `(let ((column (current-column))) + (unwind-protect + (progn ,@body) + (move-to-column column)))) +(put 'save-column 'lisp-indent-function 0) + +(defun move-line-up () + (interactive) + (save-column + (transpose-lines 1) + (forward-line -2))) + +(defun move-line-down () + (interactive) + (save-column + (forward-line 1) + (transpose-lines 1) + (forward-line -1))) + +;; Delete the matching brackets +(defun xah-delete-forward-bracket-pairs (&optional DeleteInnerTextQ) + "Delete the matching brackets to the right of cursor including the inner text. +e.g. ▮(a b c) + +In lisp code, if DeleteInnerTextQ is true, also delete the inner text. + +After the command, mark is set at the left matching bracket position, so you can `exchange-point-and-mark' to select it. + +This command assumes the char to the right of point is a left bracket or quote, and have a matching one after. + +What char is considered bracket or quote is determined by current syntax table. + +URL `http://xahlee.info/emacs/emacs/emacs_delete_backward_char_or_bracket_text.html' +Version: 2017-07-02 2023-07-30" + (interactive (list t)) + (if DeleteInnerTextQ + (progn + (mark-sexp) + (kill-region (region-beginning) (region-end))) + (let ((xpt (point))) + (forward-sexp) + (delete-char -1) + (push-mark (point) t) + (goto-char xpt) + (delete-char 1)))) + +(defun xah-delete-backward-bracket-text () + "Delete the matching brackets to the left of cursor, including the inner text. +e.g. (a b c)▮ + +This command assumes the left of cursor is a right bracket, and there is a matching one before it. + +What char is considered bracket or quote is determined by current syntax table. + +URL `http://xahlee.info/emacs/emacs/emacs_delete_backward_char_or_bracket_text.html' +Version: 2017-09-21 2023-07-30" + (interactive) + (progn + (forward-sexp -1) + (mark-sexp) + (kill-region (region-beginning) (region-end)))) + +(defun xah-delete-backward-bracket-pair () + "Delete the matching brackets/quotes to the left of cursor. +After call, mark is set at the matching bracket position, so you can `exchange-point-and-mark' to select it. + +This command assumes the left of point is a right bracket, and there is a matching one before it. + +What char is considered bracket or quote is determined by current syntax table. + +URL `http://xahlee.info/emacs/emacs/emacs_delete_backward_char_or_bracket_text.html' +Version: 2017-07-02" + (interactive) + (let ((xp0 (point)) xp1) + (forward-sexp -1) + (setq xp1 (point)) + (goto-char xp0) + (delete-char -1) + (goto-char xp1) + (delete-char 1) + (push-mark (point) t) + (goto-char (- xp0 2)))) + +(defun xah-delete-backward-char-or-bracket-text () + "Delete 1 character or delete quote/bracket pair and inner text. +If the char to the left of cursor is a matching pair, delete it along with inner text, push the deleted text to `kill-ring'. + +What char is considered bracket or quote is determined by current syntax table. + +If `universal-argument' is called first, do not delete inner text. + +URL `http://xahlee.info/emacs/emacs/emacs_delete_backward_char_or_bracket_text.html' +Version: 2017-07-02 2023-07-22 2023-07-30" + (interactive) + (if (and delete-selection-mode (region-active-p)) + (delete-region (region-beginning) (region-end)) + (cond + ((prog2 (backward-char) (looking-at "\\s)") (forward-char)) + (if current-prefix-arg + (xah-delete-backward-bracket-pair) + (xah-delete-backward-bracket-text)) + ) + ((prog2 (backward-char) (looking-at "\\s(") (forward-char)) + (message "left of cursor is opening bracket") + (let (xpOpenBracketLeft + (xpOpenBracketRight (point)) xisComment) + (backward-char) + (setq xpOpenBracketLeft (point)) + (goto-char xpOpenBracketRight) + (forward-char) + (setq xisComment (nth 4 (syntax-ppss))) + (if xisComment + (progn + (message "cursor is in comment") + (goto-char xpOpenBracketLeft) + (if (forward-comment 1) + (kill-region (point) xpOpenBracketLeft) + (message "error hSnRp: parsing comment failed."))) + (progn + (message "right 1 char of cursor is not in comment") + (goto-char xpOpenBracketLeft) + (forward-sexp) + (if current-prefix-arg + (xah-delete-backward-bracket-pair) + (xah-delete-backward-bracket-text)))))) + ((prog2 (backward-char) (looking-at "\\s\"") (forward-char)) + (if (nth 3 (syntax-ppss)) + (progn + (backward-char) + (xah-delete-forward-bracket-pairs (not current-prefix-arg))) + (if current-prefix-arg + (xah-delete-backward-bracket-pair) + (xah-delete-backward-bracket-text)))) + (t + (delete-char -1))))) + +(defvar xah-brackets '("“”" "()" "[]" "{}" "<>" "<>" "()" "[]" "{}" "⦅⦆" "〚〛" "⦃⦄" "‹›" "«»" "「」" "〈〉" "《》" "【】" "〔〕" "⦗⦘" "『』" "〖〗" "〘〙" "「」" "⟦⟧" "⟨⟩" "⟪⟫" "⟮⟯" "⟬⟭" "⌈⌉" "⌊⌋" "⦇⦈" "⦉⦊" "❛❜" "❝❞" "❨❩" "❪❫" "❴❵" "❬❭" "❮❯" "❰❱" "❲❳" "〈〉" "⦑⦒" "⧼⧽" "﹙﹚" "﹛﹜" "﹝﹞" "⁽⁾" "₍₎" "⦋⦌" "⦍⦎" "⦏⦐" "⁅⁆" "⸢⸣" "⸤⸥" "⟅⟆" "⦓⦔" "⦕⦖" "⸦⸧" "⸨⸩" "⦅⦆") + "A list of strings, each element is a string of 2 chars, the left bracket and a matching right bracket. +Used by `xah-select-text-in-quote' and others.") + +(defconst xah-left-brackets + (mapcar (lambda (x) (substring x 0 1)) xah-brackets) + "List of left bracket chars. Each element is a string.") + +(defconst xah-right-brackets + (mapcar (lambda (x) (substring x 1 2)) xah-brackets) + "List of right bracket chars. Each element is a string.") + +(defun xah-goto-matching-bracket () + "Move cursor to the matching bracket. +If cursor is not on a bracket, call `backward-up-list'. +The list of brackets to jump to is defined by `xah-left-brackets' and `xah-right-brackets'. + +URL `http://xahlee.info/emacs/emacs/emacs_navigating_keys_for_brackets.html' +Version: 2016-11-22 2023-07-22" + (interactive) + (if (nth 3 (syntax-ppss)) + (backward-up-list 1 'ESCAPE-STRINGS 'NO-SYNTAX-CROSSING) + (cond + ((eq (char-after) ?\") (forward-sexp)) + ((eq (char-before) ?\") (backward-sexp)) + ((looking-at (regexp-opt xah-left-brackets)) + (forward-sexp)) + ((prog2 (backward-char) (looking-at (regexp-opt xah-right-brackets)) (forward-char)) + (backward-sexp)) + (t (backward-up-list 1 'ESCAPE-STRINGS 'NO-SYNTAX-CROSSING))))) diff --git a/nano/Dockerfile.nanorc b/nano/Dockerfile.nanorc new file mode 100755 index 0000000..053951e --- /dev/null +++ b/nano/Dockerfile.nanorc @@ -0,0 +1,26 @@ +## Syntax highlighting for Dockerfiles +syntax "Dockerfile" "Dockerfile[^/]*$" "\.dockerfile$" + +## Keywords +icolor red "^(FROM|RUN|CMD|LABEL|MAINTAINER|EXPOSE|ENV|ADD|COPY|ENTRYPOINT|VOLUME|USER|WORKDIR|ARG|ONBUILD|STOPSIGNAL|HEALTHCHECK|SHELL)[[:space:]]" + +## Brackets & parenthesis +color brightgreen "(\(|\)|\[|\])" + +## Double ampersand +color brightmagenta "&&" + +## Comments +icolor cyan "^[[:space:]]*#.*$" + +## Blank space at EOL +color ,green "[[:space:]]+$" + +## Strings, single-quoted +color brightwhite "'([^']|(\\'))*'" "%[qw]\{[^}]*\}" "%[qw]\([^)]*\)" "%[qw]<[^>]*>" "%[qw]\[[^]]*\]" "%[qw]\$[^$]*\$" "%[qw]\^[^^]*\^" "%[qw]![^!]*!" + +## Strings, double-quoted +color brightwhite ""([^"]|(\\"))*"" "%[QW]?\{[^}]*\}" "%[QW]?\([^)]*\)" "%[QW]?<[^>]*>" "%[QW]?\[[^]]*\]" "%[QW]?\$[^$]*\$" "%[QW]?\^[^^]*\^" "%[QW]?![^!]*!" + +## Single and double quotes +color brightyellow "('|\")" diff --git a/nano/Rnw.nanorc b/nano/Rnw.nanorc new file mode 100755 index 0000000..75e6f6e --- /dev/null +++ b/nano/Rnw.nanorc @@ -0,0 +1,39 @@ +## Here is a short example for TeX files. +## +syntax "Tex" "\.Rnw$" "bib" "\.bib$" "cls" "\.cls$" +color yellow "\$(\\\$|[^$])*[^\\]\$" +color yellow "\$\$(\\\$|[^$])*[^\\]\$\$" +icolor green "\\.|\\[A-Z]*" +color magenta "[{}]" +color red start="<<" end=">>=" +color white start=">>=" end="@" + +color brightblue "%.*" +color brightblue "^[[:space:]]*#.*" +color brightblue start="\\begin\{comment\}" end="\\end\{comment\}" + +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_\-$\.]*)\(" + +# Variables +color magenta "[a-zA-Z_0-9]* <\-" +# Special Characters +color yellow "[.,{}();]" +color yellow "\[" +color yellow "\]" +color yellow "[=][^>]" +# Numbers +color magenta "[+-]*([0-9]\.)*[0-9]+([eE][+-]?([0-9]\.)*[0-9])*" +color magenta "0x[0-9a-zA-Z]*" +# Special Variables +color blue "(\$this|parent::|self::|\$this->)" +# Bitwise Operations +color magenta "(\;|\||\^){1}" +# And/Or/SRO/etc +color green "(\;\;|\|\||::|=>|->)" +# STRINGS! +color red "('[^']*')|(\"[^\"]*\")" + diff --git a/nano/apache2.nanorc b/nano/apache2.nanorc new file mode 100755 index 0000000..ab3a06a --- /dev/null +++ b/nano/apache2.nanorc @@ -0,0 +1,43 @@ +## Apache httpd.conf highlighting +## +#how to add sites-enabled files? "default" is too generic to keep in here I think +syntax "Apache2" "httpd.conf$" +color brightwhite "(ServerRoot|LoadModule|(Lock|Pid)File|Timeout|(Max)?KeepAlive(Requests|Timeout)?)" +color brightwhite "(User|Group|LogFormat|ErrorLog|Include|(Script)?Alias)" +color brightwhite "(ErrorDocument|AccessFileName|UseCanonicalName|TypesConfig|DefaultType)" +color brightwhite "(HostnameLookups|IndexOptions|(Readme|Header)Name|LanguagePriority)" +color brightwhite "(AddIcon(ByEncoding|ByType)?|DefaultIcon|IndexIgnore|BrowserMatch)" +color brightwhite "(Add(Encoding|Language|(Default)?Charset|Type|Handler)|DirectoryIndex)" +color brightwhite "(DocumentRoot|Server(Admin|Signature)|LogLevel|CustomLog)" +color brightwhite "((Force)?LanguagePriority|NameVirtualHost)" +color brightyellow "(SetHandler|Order|Deny|Allow|SetOutputFilter)" +color yellow "(AllowOverride|FileInfo|AuthConfig|Limit)" +color yellow "([^A-Z0-9a-z]Options|Indexes|(\+|\-)?SymLinksIfOwnerMatch)" +color yellow "(Includes(NoExec)?|(\+|\-)?MultiViews)" +color yellow "(None|allow,deny|deny,allow|(allow)? from (all)?|Prefer|Fallback)" +color yellow "(Add(Handler|OutputFilter)|NumServers|AcceptMutex)" +color yellow "((Min|Max)Spare(Threads|Servers|Processors)|Start(Threads|Servers))" +color yellow "(MaxClients|(Min|Max)?ThreadsPerChild|MaxRequestsPerChild)" +color yellow "(FancyIndexing|VersionSort|ExecCGI|FollowSymLinks|(Min|Max)Processors)" +color yellow "hostmaster@[A-Za-z0-9\.]*" +color brightred "(On|Off)[[:space:]]*$" +color brightred "[[:space:]]+(debug|info|notice|warn|error|crit|alert|emerg)[[:space:]]*$" +color brightred "[[:space:]]+(combined|common|referer|agent)[[:space:]]*$" +color brightred "[[:space:]]+(redirect\-carefully|nokeepalive)[[:space:]]*" +color brightred "[[:space:]]+(force\-response\-1\.0)[[:space:]]*" +color brightred "[[:space:]]+(downgrade\-1\.0)[[:space:]]*" +color brightred "[[:space:]]+application/[a-zA-Z\-]+[[:space:]]*" +color brightred "[[:space:]]+type-map[[:space:]]*" +color magenta "[[:space:]]+[0-9]+[[:space:]]*" +color magenta "(/)?(2[0-5]{2}|1[0-9]{2}|[1-9][0-9]|[1-9])(\.(2[0-5]{2}|1[0-9]{2}|[1-9][0-9]|[0-9])){3}([[:space:]]+::(2[0-5]{2}|1[0-9]{2}|[1-9][0-9]|[0-9])/(2[0-5]{2}|1[0-9]{2}|[1-9][0-9]|[0-9]))?" +color brightcyan start="<" end=">" +color white ""(\\.|[^\"])*"" +# Unix-based paths +# can't use \] in the regex for some reason?!? Maybe a bug? +# this is preventing a 100% "to the end of the line" match for a few +# lines (the trailing characters from ] to the EOL are not highlighted. +# if anyone knows how to make it work, let me know.. ;) +color white "[[:space:]]+(/[/\[\^#A-Za-z0-9\.\*\_\-]+)+" +color green "^[[:space:]]*#.*" +color cyan "\<(ServerName|Serveralias|DocumentRoot|DirectoryIndex|ErrorLog|CustomLog)\>" + diff --git a/nano/apacheconf.nanorc b/nano/apacheconf.nanorc new file mode 100755 index 0000000..f79343e --- /dev/null +++ b/nano/apacheconf.nanorc @@ -0,0 +1,44 @@ +# Apache files +syntax "apacheconf" "httpd\.conf|mime\.types|vhosts\.d\\*" +color yellow ".+" +color brightcyan "(AcceptMutex|AcceptPathInfo|AccessFileName|Action|AddAlt|AddAltByEncoding|AddAltByType|AddCharset|AddDefaultCharset|AddDescription|AddEncoding)" +color brightcyan "(AddHandler|AddIcon|AddIconByEncoding|AddIconByType|AddInputFilter|AddLanguage|AddModuleInfo|AddOutputFilter|AddOutputFilterByType|AddType|Alias|AliasMatch)" +color brightcyan "(Allow|AllowCONNECT|AllowEncodedSlashes|AllowOverride|Anonymous|Anonymous_Authoritative|Anonymous_LogEmail|Anonymous_MustGiveEmail|Anonymous_NoUserID)" +color brightcyan "(Anonymous_VerifyEmail|AssignUserID|AuthAuthoritative|AuthDBMAuthoritative|AuthDBMGroupFile|AuthDBMType|AuthDBMUserFile|AuthDigestAlgorithm)" +color brightcyan "(AuthDigestDomain|AuthDigestFile|AuthDigestGroupFile|AuthDigestNcCheck|AuthDigestNonceFormat|AuthDigestNonceLifetime|AuthDigestQop|AuthDigestShmemSize)" +color brightcyan "(AuthGroupFile|AuthLDAPAuthoritative|AuthLDAPBindDN|AuthLDAPBindPassword|AuthLDAPCharsetConfig|AuthLDAPCompareDNOnServer|AuthLDAPDereferenceAliases)" +color brightcyan "(AuthLDAPEnabled|AuthLDAPFrontPageHack|AuthLDAPGroupAttribute|AuthLDAPGroupAttributeIsDN|AuthLDAPRemoteUserIsDN|AuthLDAPUrl|AuthName|AuthType|AuthUserFile)" +color brightcyan "(BrowserMatch|BrowserMatchNoCase|BS2000Account|BufferedLogs|CacheDefaultExpire|CacheDirLength|CacheDirLevels|CacheDisable|CacheEnable|CacheExpiryCheck)" +color brightcyan "(CacheFile|CacheForceCompletion|CacheGcClean|CacheGcDaily|CacheGcInterval|CacheGcMemUsage|CacheGcUnused|CacheIgnoreCacheControl|CacheIgnoreHeaders)" +color brightcyan "(CacheIgnoreNoLastMod|CacheLastModifiedFactor|CacheMaxExpire|CacheMaxFileSize|CacheMinFileSize|CacheNegotiatedDocs|CacheRoot|CacheSize|CacheTimeMargin)" +color brightcyan "(CGIMapExtension|CharsetDefault|CharsetOptions|CharsetSourceEnc|CheckSpelling|ChildPerUserID|ContentDigest|CookieDomain|CookieExpires|CookieLog|CookieName)" +color brightcyan "(CookieStyle|CookieTracking|CoreDumpDirectory|CustomLog|Dav|DavDepthInfinity|DavLockDB|DavMinTimeout|DefaultIcon|DefaultLanguage|DefaultType)" +color brightcyan "(DeflateBufferSize|DeflateCompressionLevel|DeflateFilterNote|DeflateMemLevel|DeflateWindowSize|Deny|Directory|DirectoryIndex|DirectoryMatch|DirectorySlash)" +color brightcyan "(DocumentRoot|DumpIOInput|DumpIOOutput|EnableExceptionHook|EnableMMAP|EnableSendfile|ErrorDocument|ErrorLog|Example|ExpiresActive|ExpiresByType)" +color brightcyan "(ExpiresDefault|ExtendedStatus|ExtFilterDefine|ExtFilterOptions|FileETag|Files|FilesMatch|ForceLanguagePriority|ForceType|ForensicLog|Group|Header)" +color brightcyan "(HeaderName|HostnameLookups|IdentityCheck|IfDefine|IfModule|IfVersion|ImapBase|ImapDefault|ImapMenu|Include|IndexIgnore|IndexOptions|IndexOrderDefault)" +color brightcyan "(ISAPIAppendLogToErrors|ISAPIAppendLogToQuery|ISAPICacheFile|ISAPIFakeAsync|ISAPILogNotSupported|ISAPIReadAheadBuffer|KeepAlive|KeepAliveTimeout)" +color brightcyan "(LanguagePriority|LDAPCacheEntries|LDAPCacheTTL|LDAPConnectionTimeout|LDAPOpCacheEntries|LDAPOpCacheTTL|LDAPSharedCacheFile|LDAPSharedCacheSize)" +color brightcyan "(LDAPTrustedCA|LDAPTrustedCAType|Limit|LimitExcept|LimitInternalRecursion|LimitRequestBody|LimitRequestFields|LimitRequestFieldSize|LimitRequestLine)" +color brightcyan "(LimitXMLRequestBody|Listen|ListenBackLog|LoadFile|LoadModule|Location|LocationMatch|LockFile|LogFormat|LogLevel|MaxClients|MaxKeepAliveRequests)" +color brightcyan "(MaxMemFree|MaxRequestsPerChild|MaxRequestsPerThread|MaxSpareServers|MaxSpareThreads|MaxThreads|MaxThreadsPerChild|MCacheMaxObjectCount|MCacheMaxObjectSize)" +color brightcyan "(MCacheMaxStreamingBuffer|MCacheMinObjectSize|MCacheRemovalAlgorithm|MCacheSize|MetaDir|MetaFiles|MetaSuffix|MimeMagicFile|MinSpareServers|MinSpareThreads)" +color brightcyan "(MMapFile|ModMimeUsePathInfo|MultiviewsMatch|NameVirtualHost|NoProxy|NumServers|NWSSLTrustedCerts|NWSSLUpgradeable|Options|Order|PassEnv|PidFile)" +color brightcyan "(ProtocolEcho|Proxy|ProxyBadHeader|ProxyBlock|ProxyDomain|ProxyErrorOverride|ProxyIOBufferSize|ProxyMatch|ProxyMaxForwards|ProxyPass|ProxyPassReverse)" +color brightcyan "(ProxyPreserveHost|ProxyReceiveBufferSize|ProxyRemote|ProxyRemoteMatch|ProxyRequests|ProxyTimeout|ProxyVia|ReadmeName|Redirect|RedirectMatch)" +color brightcyan "(RedirectPermanent|RedirectTemp|RemoveCharset|RemoveEncoding|RemoveHandler|RemoveInputFilter|RemoveLanguage|RemoveOutputFilter|RemoveType|RequestHeader)" +color brightcyan "(Require|RewriteBase|RewriteCond|RewriteEngine|RewriteLock|RewriteLog|RewriteLogLevel|RewriteMap|RewriteOptions|RewriteRule|RLimitCPU|RLimitMEM|RLimitNPROC)" +color brightcyan "(Satisfy|ScoreBoardFile|Script|ScriptAlias|ScriptAliasMatch|ScriptInterpreterSource|ScriptLog|ScriptLogBuffer|ScriptLogLength|ScriptSock|SecureListen)" +color brightcyan "(SendBufferSize|ServerAdmin|ServerAlias|ServerLimit|ServerName|ServerPath|ServerRoot|ServerSignature|ServerTokens|SetEnv|SetEnvIf|SetEnvIfNoCase|SetHandler)" +color brightcyan "(SetInputFilter|SetOutputFilter|SSIEndTag|SSIErrorMsg|SSIStartTag|SSITimeFormat|SSIUndefinedEcho|SSLCACertificateFile|SSLCACertificatePath)" +color brightcyan "(SSLCARevocationFile|SSLCARevocationPath|SSLCertificateChainFile|SSLCertificateFile|SSLCertificateKeyFile|SSLCipherSuite|SSLEngine|SSLMutex|SSLOptions)" +color brightcyan "(SSLPassPhraseDialog|SSLProtocol|SSLProxyCACertificateFile|SSLProxyCACertificatePath|SSLProxyCARevocationFile|SSLProxyCARevocationPath|SSLProxyCipherSuite)" +color brightcyan "(SSLProxyEngine|SSLProxyMachineCertificateFile|SSLProxyMachineCertificatePath|SSLProxyProtocol|SSLProxyVerify|SSLProxyVerifyDepth|SSLRandomSeed|SSLRequire)" +color brightcyan "(SSLRequireSSL|SSLSessionCache|SSLSessionCacheTimeout|SSLUserName|SSLVerifyClient|SSLVerifyDepth|StartServers|StartThreads|SuexecUserGroup|ThreadLimit)" +color brightcyan "(ThreadsPerChild|ThreadStackSize|TimeOut|TraceEnable|TransferLog|TypesConfig|UnsetEnv|UseCanonicalName|User|UserDir|VirtualDocumentRoot)" +color brightcyan "(VirtualDocumentRootIP|VirtualHost|VirtualScriptAlias|VirtualScriptAliasIP|Win32DisableAcceptEx|XBitHack)" +color yellow "<[^>]+>" +color brightcyan ")" +color green "\"(\\.|[^\"])*\"" +color white "#.*" diff --git a/nano/arduino.nanorc b/nano/arduino.nanorc new file mode 100755 index 0000000..b97b2ce --- /dev/null +++ b/nano/arduino.nanorc @@ -0,0 +1,116 @@ + +## FILENAME: arduino.nanorc +## +## DESCRIPTION: The arduino.nanorc syntax files allows syntax highlighting +## for Arduino sketch files in the GNU nano text editor. +## +## Maintainer: Nicholas Wilde +## Version: 0.1 +## DATE: 06/23/2011 +## +## HOMEPAGE: http://code.google.com/p/arduino-nano-editor-syntax/ +## +## COMMENTS: -Most of the code was taken from the c.nanorc code found with +## GNU nano 2.2.6. +## -Direction was taken from the arduino vim syntax code by johannes +## +## -Tested on Ubuntu Server 11.04 Natty Narwhal and GNU nano 2.2.6 +## +## DIRECTIONS: For Ubuntu Server 11.04 Natty Narwhal: +## -Move this file to the nano directory +## /usr/share/nano/ +## -Add arduino.nanorc reference to the nanorc settings file +## /etc/nanorc +## ... +## ## Arduino +## /usr/share/nano/arduino.nanorc +## ... + +syntax "INO" "\.?ino$" + +## +color brightred "\<[A-Z_][0-9A-Z_]+\>" + +## +color green "\<((s?size)|((u_?)?int(8|16|32|64|ptr)))_t\>" + +## Constants +icolor green "\<(HIGH|LOW|INPUT|OUTPUT)\>" + +## Serial Print +icolor red "\<(DEC|BIN|HEX|OCT|BYTE)\>" + +## PI Constants +icolor green "\<(PI|HALF_PI|TWO_PI)\>" + +## ShiftOut +icolor green "\<(LSBFIRST|MSBFIRST)\>" + +## Attach Interrupt +icolor green "\<(CHANGE|FALLING|RISING)\>" + +## Analog Reference +icolor green "\<(DEFAULT|EXTERNAL|INTERNAL|INTERNAL1V1|INTERNAL2V56)\>" + +## === FUNCTIONS === ## + +## Data Types +color green "\<(boolean|byte|char|float|int|long|word)\>" + +## Control Structions +color brightyellow "\<(case|class|default|do|double|else|false|for|if|new|null|private|protected|public|short|signed|static|String|switch|this|throw|try|true|unsigned|void|while)\>" +color magenta "\<(goto|continue|break|return)\>" + +## Math +color brightyellow "\<(abs|acos|asin|atan|atan2|ceil|constrain|cos|degrees|exp|floor|log|map|max|min|radians|random|randomSeed|round|sin|sq|sqrt|tan)\>" + +## Bits & Bytes +color brightyellow "\<(bitRead|bitWrite|bitSet|bitClear|bit|highByte|lowByte)\>" + +## Analog I/O +color brightyellow "\<(analogReference|analogRead|analogWrite)\>" + +## External Interrupts +color brightyellow "\<(attachInterrupt|detachInterrupt)\>" + +## Time +color brightyellow "\<(delay|delayMicroseconds|millis|micros)\>" + +## Digital I/O +color brightyellow "\<(pinMode|digitalWrite|digitalRead)\>" + +## Interrupts +color brightyellow "\<(interrupts|noInterrupts)\>" + +## Advanced I/O +color brightyellow "\<(noTone|pulseIn|shiftIn|shiftOut|tone)\>" + +## Serial +color magenta "\<(Serial|Serial1|Serial2|Serial3|begin|end|peek|read|print|println|available|flush)\>" + +## Structure +color brightyellow "\<(setup|loop)\>" + +## +color brightcyan "^[[:space:]]*#[[:space:]]*(define|include(_next)?|(un|ifn?)def|endif|el(if|se)|if|warning|error|pragma)" + +## +color brightmagenta "'([^'\]|(\\["'abfnrtv\\]))'" "'\\(([0-3]?[0-7]{1,2}))'" "'\\x[0-9A-Fa-f]{1,2}'" + +## GCC builtins +color cyan "__attribute__[[:space:]]*\(\([^)]*\)\)" "__(aligned|asm|builtin|hidden|inline|packed|restrict|section|typeof|weak)__" + +## String highlighting. You will in general want your comments and +## strings to come last, because syntax highlighting rules will be +## applied in the order they are read in. +color brightyellow "<[^= ]*>" ""(\\.|[^"])*"" + +## This string is VERY resource intensive! +color brightyellow start=""(\\.|[^"])*\\[[:space:]]*$" end="^(\\.|[^"])*"" + +## Comments +color brightblue "^\s*//.*" +color brightblue start="/\*" end="\*/" + +## Trailing whitespace +color ,green "[[:space:]]+$" diff --git a/nano/asciidoc.nanorc b/nano/asciidoc.nanorc new file mode 100755 index 0000000..1f9d2cc --- /dev/null +++ b/nano/asciidoc.nanorc @@ -0,0 +1,47 @@ +syntax "AsciiDoc" "\.(asc|asciidoc|adoc)$" + +# main header +color brightred "^=[[:space:]].+$" +# h1 +color red "^==[[:space:]].*$" +color red "^----+$" +# h2 +color magenta "^===[[:space:]].*$" +color magenta "^~~~~+$" +# h4 +color green "^====[[:space:]].*$" +color green "^\^\^\^\^+$" +# h5 +color brightblue "^=====[[:space:]].*$" +color brightblue "^\+\+\+\++$" + +# attributes +color brightgreen ":.*:" +color brightred "\{[a-z0-9]*\}" +color red "\\\{[a-z0-9]*\}" +color red "\+\+\+\{[a-z0-9]*\}\+\+\+" + +# Paragraph Title +color yellow "^\..*$" + +# source +color magenta "^\[(source,.+|NOTE|TIP|IMPORTANT|WARNING|CAUTION)\]" + +# Other markup +color yellow ".*[[:space:]]\+$" +color yellow "_[^_]+_" +color yellow "\*[^\*]+\*" +color yellow "\+[^\+]+\+" +color yellow "`[^`]+`" +color yellow "\^[^\^]+\^" +color yellow "~[^~]+~" +color yellow "'[^']+'" + +color cyan "`{1,2}[^']+'{1,2}" + +# bullets +color brightmagenta "^[[:space:]]*[\*\.-]{1,5}[[:space:]]" + +# anchors +color brightwhite "\[\[.*\]\]" +color brightwhite "<<.*>>" diff --git a/nano/asm.nanorc b/nano/asm.nanorc new file mode 100755 index 0000000..e94ee90 --- /dev/null +++ b/nano/asm.nanorc @@ -0,0 +1,17 @@ +## Here is an example for assembler. +## +syntax "asm" "\.(S|s|asm)$" +color red "\<[A-Z_]{2,}\>" +color brightgreen "\.(data|subsection|text)" +color green "\.(align|file|globl|global|hidden|section|size|type|weak)" +color brightyellow "\.(ascii|asciz|byte|double|float|hword|int|long|short|single|struct|word)" +icolor brightred "^[[:space:]]*[.0-9A-Z_]*:" +color brightcyan "^[[:space:]]*#[[:space:]]*(define|undef|include|ifn?def|endif|elif|else|if|warning|error)" +## Highlight strings (note: VERY resource intensive) +color brightyellow "<[^= ]*>" ""(\\.|[^"])*"" +color brightyellow start=""(\\.|[^"])*\\[[:space:]]*$" end="^(\\.|[^"])*"" +## Highlight comments +color brightblue "//.*" +color brightblue start="/\*" end="\*/" +## Highlight trailing whitespace +color ,green "[[:space:]]+$" diff --git a/nano/awk.nanorc b/nano/awk.nanorc new file mode 100755 index 0000000..696ab6a --- /dev/null +++ b/nano/awk.nanorc @@ -0,0 +1,38 @@ +## Here is an example for awk. +## +syntax "awk" "\.awk$" +## records +icolor brightred "\$[0-9A-Z_!@#$*?-]+" +## awk-set variables +color red "\<(ARGC|ARGIND|ARGV|BINMODE|CONVFMT|ENVIRON|ERRNO|FIELDWIDTHS)\>" +color red "\<(FILENAME|FNR|FS|IGNORECASE|LINT|NF|NR|OFMT|OFS|ORS)\>" +color red "\<(PROCINFO|RS|RT|RSTART|RLENGTH|SUBSEP|TEXTDOMAIN)\>" +## function declarations and special patterns +color brightgreen "\<(function|extension|BEGIN|END)\>" +## operators +color green "(\{|\}|\(|\)|\;|\]|\[|\\|<|>|!|=|&|\+|-|\*|%|/|\?:|\^|\|)" +## flow control +color brightyellow "\<(for|if|while|do|else|in|delete|exit)\>" +color brightyellow "\<(break|continue|return)\>" +## I/O statements +color brightgreen "\<(close|getline|next|nextfile|print|printf)\>" +color brightgreen "\<(system|fflush)\>" +## standard functions +color magenta "\<(atan2|cos|exp|int|log|rand|sin|sqrt|srand)\>" +color magenta "\<(asort|asorti|gensub|gsub|index|length|match)\>" +color magenta "\<(split|sprintf|strtonum|sub|substr|tolower|toupper)\>" +color magenta "\<(mktime|strftime|systime)\>" +color magenta "\<(and|compl|lshift|or|rshift|xor)\>" +color magenta "\<(bindtextdomain|dcgettext|dcngettext)\>" + +## +## String highlighting. You will in general want your comments and +## strings to come last, because syntax highlighting rules will be +## applied in the order they are read in. +color brightyellow "<[^= ]*>" ""(\\.|[^"])*"" + +## Comment highlighting +color brightblue "(^|[[:space:]])#.*$" + +## Trailing whitespace +color ,green "[[:space:]]+$" diff --git a/nano/batch.nanorc b/nano/batch.nanorc new file mode 100755 index 0000000..bc936d8 --- /dev/null +++ b/nano/batch.nanorc @@ -0,0 +1,34 @@ +## Here is an example for Batch file shell script. +## Author: davidhcefx (https://github.com/davidhcefx), based on Mitch Bumgarner's version. +## License: MIT License + +syntax "batch" "\.(bat|cmd)$" +header "^@[eE](cho|CHO) (on|off|ON|OFF)" +comment "::" + +# Native commands, symbols, and comparisons. +icolor green "\<(ASSOC|CALL|CD|CLS|CMDEXTVERSION|COLOR|COPY|DATE|DEL|DIR|ECHO|ENDLOCAL|ERASE|ERRORLEVEL|EXIT|FOR|FTYPE|GOTO|IF|MD|MKLINK|MOVE|PATH|PAUSE|POPD|PROMPT|PUSHD|RD|REM|REN|SET|SETLOCAL|SHIFT|START|TIME|TITLE|TYPE|VER|VERIFY|VOL)\>" +icolor green "\<(EQU|NEQ|LSS|LEQ|GTR|GEQ|DEFINED|EXIST|NOT)\>" +color green "[:|<>=&@\\^]" + +# Options. +color brightmagenta "[[:blank:]]/[A-Za-z]+\>" + +# Common commands. (with Sublime and Github highlighting as a reference) +icolor brightblue "\<(APPEND|ARP|AT|ATTRIB|AUTOFAIL|BACKUP|BCDBOOT|BCDEDIT|BITSADMIN|BREAK|CACLS|CERTREQ|CERTUTIL|CHANGE|CHCP|CHDIR|CHKDSK|CHKNTFS|CHOICE|CIPHER|CleanMgr|CLIP|CMD|CMDKEY|COMP|COMPACT|CONVERT|CSVDE|DEFRAG|DELTREE|DevCon|DIRQUOTA|DISKCOMP|DISKCOPY|DISKPART|DISKSHADOW|DNSCMD|DOSKEY|DriverQuery|DSACLs|DSAdd|DSGet|DSQuery|DSMod|DSMove|DSRM|Dsmgmt|EVENTCREATE|EXPAND|EXPLORER|EXTRACT|FC|FIND|FINDSTR|FORFILES|FORMAT|FREEDISK|FSUTIL|FTP|GETMAC|GPRESULT|GPUPDATE|GRAFTABL|HELP|HOSTNAME|iCACLS|IEXPRESS|IPCONFIG|INUSE|KEYB|LABEL|LODCTR|LOGMAN|LOGOFF|MAKECAB|MKDIR|MODE|MORE|MOUNTVOL|MSG|MSIEXEC|MSINFO32|MSTSC|NET|NETDOM|NETSH|NBTSTAT|NETSTAT|NLTEST|NSLOOKUP|NTBACKUP|NTDSUtil|OPENFILES|PATHPING|PING|POWERCFG|PRINT|PRNCNFG|PRNMNGR|Query|RASDIAL|RASPHONE|RECOVER|REG|REGEDIT|REGSVR32|REGINI|RENAME|REPLACE|Reset|RESTORE|RMDIR|ROBOCOPY|ROUTE|RUNAS|RUNDLL32|SC|SCHTASKS|SetSPN|SETX|SFC|SHUTDOWN|SORT|SSH|SUBINACL|SUBST|SYSTEMINFO|TAKEOWN|TASKLIST|TASKKILL|TELNET|TIMEOUT|TRACERT|TREE|TSDISCON|TSKILL|TypePerf|TZUTIL|VSSADMIN|W32TM|WAITFOR|WBADMIN|WECUTIL|WEVTUTIL|WHERE|WHOAMI|WINRM|WINRS|WMIC|XCACLS|XCOPY)\>" + +# Variable names. (spaces not allowed) +color brightred "%([[:alpha:]`~@#$*(){}:',.?+=_-]|\[|\])([[:alnum:]`~@#$*(){}:',.?+=_-]|\[|\])*%" +color brightred "!([[:alnum:]`~@#$%*(){}:',.?+=_-]|\[|\])([[:alnum:]`~@#$%*(){}:',.?+=_-]|\[|\])*!" + +# Parameter names for arguments and loop. +color brightred "%(~[[:alpha:]$]*)?[0-9*]\>" "%%(~[[:alpha:]$]*)?[[:alpha:]]\>" + +# Comments. +icolor cyan "^[[:space:]]*(\|::).*" + +# Strings. +icolor brightyellow ""(\^.|[^"])*"" + +# Trailling whitespace +color ,green "[[:space:]]+$" diff --git a/nano/c-file.nanorc b/nano/c-file.nanorc new file mode 100755 index 0000000..2b56a6d --- /dev/null +++ b/nano/c-file.nanorc @@ -0,0 +1,10 @@ +syntax "c-file" "\.(c|h)$" +color red "\<[A-Z_]{2,}\>" +color green "\<(float|double|char|int|short|long|enum|void|static|const|struct|union|typedef|extern|signed|unsigned|inline)\>" +color brightyellow "\<(for|if|while|do|else|case|switch|goto|continue|break|return)\>" +color brightcyan "^ *# *(define|undef|include|ifn?def|endif|elif|else|if)" +color brightmagenta "'([^\]|(\\['abfnrtv\\]))'" "'\\(([0-7][0-7]?)|([0-3][0-7][0-7]))'" "'\\x[0-9A-Fa-f][0-9A-Fa-f]?'" +color brightyellow "<[^= ]*>" ""(\\.|[^\"])*"" +color brightyellow start=""(\\.|[^\"])*\\ *$" end="^(\\.|[^\"])*"" +color brightblue "//.*" +color brightblue start="/\*" end="\*/" diff --git a/nano/c.nanorc b/nano/c.nanorc new file mode 100755 index 0000000..ecf078e --- /dev/null +++ b/nano/c.nanorc @@ -0,0 +1,36 @@ +## Here is an example for C/C++. +## +syntax "c" "\.(c(c|pp|xx)?|C)$" "\.(h(h|pp|xx)?|H)$" "\.ii?$" "\.(def)$" +color brightred "\<[A-Z_][0-9A-Z_]+\>" +color green "\<(float|double|bool|char|int|short|long|sizeof|enum|void|static|const|struct|union|typedef|extern|(un)?signed|inline)\>" +color green "\<((s?size)|((u_?)?int(8|16|32|64|ptr)))_t\>" +color green "\<(class|namespace|template|public|protected|private|typename|this|friend|virtual|using|mutable|volatile|register|explicit)\>" +color green "\<(for|if|while|do|else|case|default|switch)\>" +color green "\<(try|throw|catch|operator|new|delete)\>" +color brightmagenta "\<(goto|continue|break|return)\>" +color brightcyan "^[[:space:]]*#[[:space:]]*(define|include|(un|ifn?)def|endif|el(if|se)|if|warning|error)" +color brightmagenta "'([^'\]|(\\["'abfnrtv\\]))'" "'\\(([0-3]?[0-7]{1,2}))'" "'\\x[0-9A-Fa-f]{1,2}'" + +## +## GCC builtins +color green "__attribute__[[:space:]]*\(\([^)]*\)\)" "__(aligned|asm|builtin|hidden|inline|packed|restrict|section|typeof|weak)__" + +#Operator Color +color yellow "[.:;,+*|=!\%]" "<" ">" "/" "-" "&" + +#Parenthetical Color +color magenta "[(){}]" "\[" "\]" + + +## +## String highlighting. You will in general want your comments and +## strings to come last, because syntax highlighting rules will be +## applied in the order they are read in. +color cyan "<[^= ]*>" ""(\\.|[^"])*"" +## +## This string is VERY resource intensive! +#color cyan start=""(\\.|[^"])*\\[[:space:]]*$" end="^(\\.|[^"])*"" + +## Comment highlighting +color brightblue "//.*" +color brightblue start="/\*" end="\*/" diff --git a/nano/caml.nanorc b/nano/caml.nanorc new file mode 100755 index 0000000..cd1ec92 --- /dev/null +++ b/nano/caml.nanorc @@ -0,0 +1,51 @@ +## Caml, ML, F, and OCaml syntax coloration, for Nano +## (C) 05/2012 Lilian Besson (lilian DOT besson AT normale DOT fr) +## Last version : http://besson.qc.to/NanoSyntax/caml.nanorc + +syntax "ocaml" "\.mli?$" "rlwrap" + +##possible errors : open "[( that are not closed yet +# color brightwhite "(\(|\"|\[)(\\.|[^(\)|\"|\])*$" +# color white "\([^*](.*|[^)])*\)" +# color green "\[(.*|[^]])*\]" + +#uid +color red "\<[A-Z][0-9a-z_]{2,}\>" +#command +color brightred,black start="^#" end=";;" + +##keywords +color brightblue "\<(let|val|method|in|and|rec|private|virtual|constraint)\>" +color green,black "\<(if|then|else)\>" +color blue "\<(begin|end|object|struct|sig|for|while|do|done|to|downto)\>" +color yellow "\<(as|when|of)\>" +color red "\<(int|float|bool|char|string)\>" +color brightblue "\<(new|ref|mutable|lazy|assert|raise|)\>" +color brightgreen "\|" +color brightblue "\<(include|inherit|initializer)\>" + +color blue "\<(fun|function|functor|match|try|with)\>" +color brightblue "\;(\;)?" + +color brightred "\<(type|open|class|module|exception|external)\>" + +##numbers and strings +color yellow "[[:space:]][0-9][0-9]*(\.)?" +color green "\[\]" +color brightgreen "\<(true|false)\>" +color magenta "<[^= ]*>" ""(\\.|[^\"])*"" +color magenta start=""(\\.|[^\"])*\\ *$" end="^(\\.|[^\"])*"" + + +##relations and operators +color brightyellow "(\=|[ ]*>[ ]*|[ ]*<[ ]*|\:\=)" +color brightgreen "\:\:" +color brightyellow "(\+|\*|\/|-)(\.)?" + +color brightgreen "\->" + +##Comments +# color brightcyan "\(\*(\\.|\*|\(|[^\*]\)|[^(\*\))])*$" +# color cyan "\(\*.*\*\)" +color black,white start="\(\*" end="\*\)" +color white,green start="\(\*\*" end="\*\)" diff --git a/nano/changelog.nanorc b/nano/changelog.nanorc new file mode 100755 index 0000000..d465206 --- /dev/null +++ b/nano/changelog.nanorc @@ -0,0 +1,27 @@ +syntax "changelog" "ChangeLog$" +color brightgreen "^\+.*" +color green "^\+\+\+.*" +color brightblue "^ .*" +color brightred "^-.*" +color red "^---.*" +color red "(\d\d\s\w\+\s\d\{4\})" +color brightyellow "^@@.*" +color magenta "^diff.*" + +#syn region GentooChangeLogRelease start=/^\*/ end=/$/ contains=GentooChangeLogReleaseDate +#syn match GentooChangeLogReleaseDate contained /(\d\d\s\w\+\s\d\{4\})/ +#syn region GentooChangeLogEntry start=/^\s\+/ end=/\n\n/ +# \ contains=GentooChangeLogEntryDate,GentooBug +#syn region GentooChangeLogEntryDate contained start=/\d\?\d\s\w\+\s\d\{4\}/ end=/;/ +# \ nextgroup=GentooChangeLogEntryAuthor,GentooChangeLogEntryEmail skipwhite skipnl +#syn region GentooChangeLogEntryAuthor contained start=/\S/ end=/\( <\)\@=/ +# \ nextgroup=GentooChangeLogEntryEmail skipwhite skipnl +#syn match GentooChangeLogEntryEmail contained /<\?[a-zA-Z0-9\.\-\_]\+@[a-zA-Z0-9\.\-\_]\+>\?/ +# \ nextgroup=GentooChangeLogFiles skipwhite skipnl +#syn region GentooChangeLogFiles contained start=/\(\S\)\@=/ end=/:/ +# \ contains=GentooChangeLogAddFile,GentooChangeLogDelFile,GentooChangeLogModFile +#" Add / delete / changed files +#syn region GentooChangeLogAddFile contained start=/+/ end=/\([,:]\)\@=/ +#syn region GentooChangeLogDelFile contained start=/-/ end=/\([,:]\)\@=/ +#syn region GentooChangeLogModFile contained start=/[a-zA-Z0-9]/ end=/\([,:]\)\@=/ + diff --git a/nano/changelogs.nanorc b/nano/changelogs.nanorc new file mode 100755 index 0000000..74158c2 --- /dev/null +++ b/nano/changelogs.nanorc @@ -0,0 +1,19 @@ +## Changelog file syntax +## +syntax "changelogs" "ChangeLog*$" "HISTORY$" "NEWS$" + +color green "\+" +color red "\-" +color brightwhite "[0-9]" +color brightblue "[0-9][0-9]\:[0-9][0-9]\:[0-9][0-9]" +color blue "[0-9][0-9][0-9][0-9]\-[0-9][0-9]\-[0-9][0-9]" +color blue "[0-9][0-9][0-9][0-9]\/[0-9][0-9]\/[0-9][0-9]" +color blue "\<(CEST|CET|CST||CDT|EDT)\>" +color yellow "[0-9]\..*$" +color cyan "\*.*$" +color brightblue "\<(pre.*$|beta.*$|rc.*$|release.*$)\>" +color green "#.*$" +icolor brightred "^[[:space:]]*[.0-9A-Z_]*:" +color magenta "[.0-9A-Za-z_]*[[:space:]]*[.0-9A-Za-z_]*[[:space:]]<" +color brightyellow "<(\\.|[^\"])*>" +color brightwhite "commit[[:space:]]*[.0-9A-Z_]*$" diff --git a/nano/clike.nanorc b/nano/clike.nanorc new file mode 100755 index 0000000..c8eb5ad --- /dev/null +++ b/nano/clike.nanorc @@ -0,0 +1,27 @@ +## Here is an example for C/C++. +## +syntax "clike" "\.(m|pch)$" +color brightred "\<[A-Z_][0-9A-Z_]+\>" +color green "\<(float|double|bool|char|int|short|long|sizeof|enum|void|static|const|struct|union|typedef|extern|(un)?signed|inline)\>" +color green "\<((s?size)|((u_?)?int(8|16|32|64|ptr)))_t\>" +color green "\<(class|namespace|template|public|protected|private|typename|this|friend|virtual|using|mutable|volatile|register|explicit)\>" +color brightyellow "\<(for|if|while|do|else|case|default|switch)\>" +color brightyellow "\<(try|throw|catch|operator|new|delete)\>" +color magenta "\<(goto|continue|break|return)\>" +color brightcyan "^[[:space:]]*#[[:space:]]*(define|include|(un|ifn?)def|endif|el(if|se)|if|warning|error)" +color brightmagenta "'([^'\]|(\\["'abfnrtv\\]))'" "'\\(([0-3]?[0-7]{1,2}))'" "'\\x[0-9A-Fa-f]{1,2}'" +## +## GCC builtins +color cyan "__attribute__[[:space:]]*\(\([^)]*\)\)" "__(aligned|asm|builtin|hidden|inline|packed|restrict|section|typeof|weak)__" +## +## String highlighting. You will in general want your comments and +## strings to come last, because syntax highlighting rules will be +## applied in the order they are read in. +color brightyellow "<[^= ]*>" ""(\\.|[^"])*"" +## +## This string is VERY resource intensive! +color brightyellow start=""(\\.|[^"])*\\[[:space:]]*$" end="^(\\.|[^"])*"" + +## Comment highlighting +color brightblue "//.*" +color brightblue start="/\*" end="\*/" diff --git a/nano/clojure.nanorc b/nano/clojure.nanorc new file mode 100755 index 0000000..aac31f4 --- /dev/null +++ b/nano/clojure.nanorc @@ -0,0 +1,33 @@ +## Clojure Syntax Highlighting +## + +syntax "clojure" "\.((clj[s|c]?)|edn)" + +icolor green "defn? [0-9A-Z_]+" + +color brightgreen "[#']" +color brightgreen "\" +color green "\<(map|reduce|filter|println)\>" + +color brightyellow "\<(if(-(let|not))?|condp?|when(-(let|not))?)\>" +color brightyellow "\<(do(all|run|seq|sync)?|recur|loop)\>" +color brightyellow "\<(try|catch|finally|throw)\>" +color yellow "(\:else) " + +color brightcyan "\<(require|use|import|ns)\>" +color cyan "(\:(require|use|import)) " + +color brightred "\<(let(fn)?|defn?)\>" +color brightwhite "\((\/|((not|[<>\=])?\=?))" +color brightwhite "\((\+|-|\*)'?" +color brightwhite "\<(and|or|not|mod|quot|rem|inc|dec)\>" + +color magenta "[\(\)]" +color magenta "(\[|\])" + +color yellow "\<(true|false|nil)\>" +color brightyellow "(["][^"]*[^\\]["])|("")" + +color brightblue ";.*$" + +color ,green "[[:space:]]+$" diff --git a/nano/cmake.nanorc b/nano/cmake.nanorc new file mode 100755 index 0000000..7dd6c18 --- /dev/null +++ b/nano/cmake.nanorc @@ -0,0 +1,22 @@ +## CMake syntax highlighter for GNU Nano +## +syntax "cmake" "(CMakeLists\.txt|\.cmake)$" + +icolor green "^[[:space:]]*[A-Z0-9_]+" +icolor brightyellow "^[[:space:]]*(include|include_directories|include_external_msproject)\>" + +icolor brightgreen "^[[:space:]]*\<((else|end)?if|else|(end)?while|(end)?foreach|break)\>" +color brightgreen "\<(COPY|NOT|COMMAND|PROPERTY|POLICY|TARGET|EXISTS|IS_(DIRECTORY|ABSOLUTE)|DEFINED)\>[[:space:]]" +color brightgreen "[[:space:]]\<(OR|AND|IS_NEWER_THAN|MATCHES|(STR|VERSION_)?(LESS|GREATER|EQUAL))\>[[:space:]]" + +icolor brightred "^[[:space:]]*\<((end)?(function|macro)|return)" + +#String Color +color cyan "['][^']*[^\\][']" "[']{3}.*[^\\][']{3}" +color cyan "["][^"]*[^\\]["]" "["]{3}.*[^\\]["]{3}" + +icolor brightred start="\$(\{|ENV\{)" end="\}" +color magenta "\<(APPLE|UNIX|WIN32|CYGWIN|BORLAND|MINGW|MSVC(_IDE|60|71|80|90)?)\>" + +icolor brightblue "^([[:space:]]*)?#.*" +icolor brightblue "[[:space:]]#.*" diff --git a/nano/coffeescript.nanorc b/nano/coffeescript.nanorc new file mode 100755 index 0000000..b901c25 --- /dev/null +++ b/nano/coffeescript.nanorc @@ -0,0 +1,16 @@ +syntax "CoffeeScript" "\.coffee$" +header "^#!.*/(env +)?coffee" + +color red "[!&|=\/*+\-\<\>]|\<(and|or|is|isnt|not)\>" +color brightblue "[A-Za-z_][A-Za-z0-9_]*:[[:space:]]*(->|\()" "->" +color brightblue "[()]" +color cyan "\<(for|of|continue|break|isnt|null|unless|this|else|if|return)\>" +color cyan "\<(try|catch|finally|throw|new|delete|typeof|in|instanceof)\>" +color cyan "\<(debugger|switch|while|do|class|extends|super)\>" +color cyan "\<(undefined|then|unless|until|loop|of|by|when)\>" +color brightcyan "\<(true|false|yes|no|on|off)\>" +color brightyellow "@[A-Za-z0-9_]*" +color yellow ""(\\.|[^"])*"|'(\\.|[^'])*'" +color brightblack "(^|[[:space:]])#([^{].*)?$" +color ,green "[[:space:]]+$" +color ,red " + +| + +" diff --git a/nano/colortest.nanorc b/nano/colortest.nanorc new file mode 100755 index 0000000..f2b44f2 --- /dev/null +++ b/nano/colortest.nanorc @@ -0,0 +1,17 @@ +syntax "colorTest" "ColorTest$" + +color black "\" + +color red "\" +color green "\" +color yellow "\" +color blue "\" +color magenta "\" +color cyan "\" + +color brightred "\" +color brightgreen "\" +color brightyellow "\" +color brightblue "\" +color brightmagenta "\" +color brightcyan "\" diff --git a/nano/conf.nanorc b/nano/conf.nanorc new file mode 100755 index 0000000..2dab29f --- /dev/null +++ b/nano/conf.nanorc @@ -0,0 +1,10 @@ +## Here is an example for nanorc files. +## +syntax "conf" "\.c[o]?nf$" +## Possible errors and parameters +## Strings +icolor white ""(\\.|[^"])*"" +## Comments +icolor brightblue "^[[:space:]]*#.*$" +icolor cyan "^[[:space:]]*##.*$" + diff --git a/nano/config.nanorc b/nano/config.nanorc new file mode 100755 index 0000000..7e394ee --- /dev/null +++ b/nano/config.nanorc @@ -0,0 +1,7 @@ +### several config files +syntax "config" "(\.|/|)config$" "(\.|/|)logout$" "(\.|/|)COLORS$" "(\.|/|)colors$" +color red "/.*$" "TERM" "\..*$" "=.*$" "\*.*$" +color white ":unscaled" "[0-9]" +color blue "setenv|export" "\;" +color green "#.*$" + diff --git a/nano/config2.nanorc b/nano/config2.nanorc new file mode 100755 index 0000000..54f686d --- /dev/null +++ b/nano/config2.nanorc @@ -0,0 +1,9 @@ +### more config files +syntax "config2" "(\.|/|)env$" "(\.|/|)server.$" "hosts" "gpm" "local.*$" "bootsplash" "crypto-loop" +color red "/.*$" "http\:\/\/.*$" +color white ":unscaled" +color blue "setenv|export" +color brightwhite "[0-9]" +color green "#.*$" +color white "http\:\/\/" "ftp\:\/\/" "rsync\:\/\/" + diff --git a/nano/config3.nanorc b/nano/config3.nanorc new file mode 100755 index 0000000..63fe000 --- /dev/null +++ b/nano/config3.nanorc @@ -0,0 +1,8 @@ +### even more config files ;-) +syntax "config3" "iptables" "ntp.*$" "rsyncd" "xfs" "saslauthd" "timidity" "net.*$" "hdparm" "esound" "login.*$" +color red "/.*$" "http\:\/\/.*$" ""(\\.|[^\"])*"" "\<(server)\>" "\<(logfile)\>""\<(driftfile)\>" +color white ":unscaled" "http\:\/\/" "ftp\:\/\/" "rsync\:\/\/" +color blue "setenv|export" +color brightwhite "[0-9]" +color green "#.*$" + diff --git a/nano/configfiles.nanorc b/nano/configfiles.nanorc new file mode 100755 index 0000000..10140cc --- /dev/null +++ b/nano/configfiles.nanorc @@ -0,0 +1,18 @@ +### all *conf files (e.g. make.conf, xorg.conf, grub.conf, make.globals, Xfce files...) +syntax "configfiles" "(\.|/|)conf$" "(\.|/|)ample$" "(\.|/|)globals$" "xfce.*$" "syslog-ng" "sudoers" +color brightwhite "\<(alias)\>" +color blue "<(\\.|[^'])*>" +color magenta "[a-zA-Z0-9\_]+=" +color white ">(\\.|[^'><])*" "\<(logfile)\>" "\<(driftfile)\>" "\<(restrict)\>" +color white ":unscaled" "http\:\/\/" "ftp\:\/\/" "rsync\:\/\/" +color magenta "'(\\.|[^'])*'" +color brightwhite "[0-9]" +color brightwhite "[<>]" +color magenta "Section" "EndSection" "SubSection" "EndSubSection" +color red "\<(root)\>" +color brightred,blue "^.*-->" start="" + diff --git a/nano/conky.nanorc b/nano/conky.nanorc new file mode 100755 index 0000000..edc6e6f --- /dev/null +++ b/nano/conky.nanorc @@ -0,0 +1,35 @@ +## Conky config highlighting +## +syntax "Conky" ".conkyrc$" + +# keywords +color brightblue "(use_spacer|background|use_xft|xftfont|xftalpha)" +color brightblue "(mail_spool|update_interval|own_window)" +color brightblue "(double_buffer|minimum_size)" +color brightblue "(draw_(outline|borders|shades)|stippled_borders)" +color brightblue "border_(margin|width)" +color brightblue "default_((shade_|outline_)?color)" +color brightblue "(alignment|gap_x|gap_y|no_buffers|uppercase)" +color brightblue "^TEXT[[:space:]]*$" + +# Highlight boolean toggles +color brightred "[[:space:]]+(yes|no)[[:space:]]*" + +# Conky position descriptors +color brightred "(top_left|top_right|bottom_left|bottom_right)[[:space:]]*$" + +# Numbers +color magenta "[[:space:]]+([[:space:]]*([0-9]\.?))+[[:space:]]*" + +# variables +color brightred "\$\{?[a-zA-Z_0-9\# ]+\}?" + +# Comments - match 0 or more spaces/tabs preceding the comment +# back assertions don't seem to work, so we have to assume that all +# comments will start on a new line (otherwise the RGB colour codes +# will cause their lines to get treated as comments +color green "^[[:space:]]*#.*" + +# apply after comments (it's just easier) +# colour codes +color white "[[:space:]]+\#[0-9A-Fa-f]{6}" \ No newline at end of file diff --git a/nano/creole.nanorc b/nano/creole.nanorc new file mode 100755 index 0000000..cca97a6 --- /dev/null +++ b/nano/creole.nanorc @@ -0,0 +1,22 @@ +syntax "Creole" "\.creole$" + +# Headers +color magenta "^=.*=$" + +# Lists +color green "^[#*]+\s.*" + +# Links and images +color cyan start="\[\[" end="\]\]" +color cyan start="\{\{" end="\}\}" + +# Emphasis +color yellow "//.*//" +color brightyellow "\*\*.*\*\*" + +# Pre and tables +color red start="\{\{\{" end="\}\}\}" +color red "\|" +color brightred "\|=" + +color ,red "\s+$" diff --git a/nano/csh.nanorc b/nano/csh.nanorc new file mode 100755 index 0000000..da13126 --- /dev/null +++ b/nano/csh.nanorc @@ -0,0 +1,15 @@ +## Here is an example for c-shell scripts. +## +syntax "CSH" "\.csh$" "\.tcshrc" "\.cshrc" "\.login" "\.logout" "\.history" +header "^#!.*/(env +)?(t)?csh( |$)" + +color green "\<(break|breaksw|case|continue|default|else|end|endif|endsw|exec|exit|foreach|goto|if|repeat|shift|switch|then|while)\>" +color green "(\{|\}|\(|\)|\;|\]|\[|`|\\|\$|<|>|!|=|&|\|)" +color green "-[rfuMZwdgAUxlkebtAGoczpPsS]\>" +color green "-(A\:|M\:|U\:|G\:)\>" +color brightblue "\<(alias|bindkey|cat|cd|chmod|chown|complete|cp|echo|env|grep|install|ln|make|mkdir|mv|printenv|rm|sed|set|setenv|tar|touch|umask|unalias|uncomplete|unset|unsetenv)\>" +icolor brightgreen "^\s+[0-9A-Z_]+\s+\(\)" +icolor brightred "\$\{?[0-9A-Z_!@#$*?-]+\}?" +color brightyellow ""(\\.|[^"])*"" "'(\\.|[^'])*'" +color cyan "(^|[[:space:]])#.*$" +color ,green "[[:space:]]+$" diff --git a/nano/csharp.nanorc b/nano/csharp.nanorc new file mode 100755 index 0000000..893bb37 --- /dev/null +++ b/nano/csharp.nanorc @@ -0,0 +1,26 @@ +syntax "C#" "\.cs$" + +# Class +color brightmagenta "class +[A-Za-z0-9]+ *((:) +[A-Za-z0-9.]+)?" + +# Annotation +color magenta "@[A-Za-z]+" + +color brightblue "[A-Za-z_][A-Za-z0-9_]*[[:space:]]*[()]" +color green "\<(bool|byte|sbyte|char|decimal|double|float|IntPtr|int|uint|long|ulong|object|short|ushort|string|base|this|var|void)\>" +color cyan "\<(alias|as|case|catch|checked|default|do|dynamic|else|finally|fixed|for|foreach|goto|if|is|lock|new|null|return|switch|throw|try|unchecked|while)\>" +color cyan "\<(abstract|async|class|const|delegate|enum|event|explicit|extern|get|implicit|in|internal|interface|namespace|operator|out|override|params|partial|private|protected|public|readonly|ref|sealed|set|sizeof|stackalloc|static|struct|typeof|unsafe|using|value|virtual|volatile|yield)\>" +# LINQ-only keywords (ones that cannot be used outside of a LINQ query - lots others can) +color cyan "\<(from|where|select|group|info|orderby|join|let|in|on|equals|by|ascending|descending)\>" +color brightred "\<(break|continue)\>" +color brightcyan "\<(true|false)\>" +color red "[-+/*=<>?:!~%&|]" +color blue "\<([0-9._]+|0x[A-Fa-f0-9_]+|0b[0-1_]+)[FL]?\>" +color yellow ""(\\.|[^"])*"|'(\\.|[^'])*'" +color magenta "\\([btnfr]|'|\"|\\)" +color magenta "\\u[A-Fa-f0-9]{4}" +color brightblack "(^|[[:space:]])//.*" +color brightblack start="^\s*/\*" end="\*/" +color brightwhite,cyan "TODO:?" +color ,green "[[:space:]]+$" +color ,red " + +| + +" diff --git a/nano/css.nanorc b/nano/css.nanorc new file mode 100755 index 0000000..faf783a --- /dev/null +++ b/nano/css.nanorc @@ -0,0 +1,10 @@ +## Here is an example for css files. +## + +syntax "css" "\.css$" +color brightred "." +color brightyellow start="\{" end="\}" +color brightwhite start=":" end="[;^\{]" +color brightblue ":active|:focus|:hover|:link|:visited|:link|:after|:before|$" +color brightblue start="\/\*" end="\\*/" +color green ";|:|\{|\}" diff --git a/nano/csv.nanorc b/nano/csv.nanorc new file mode 100755 index 0000000..14d7d9c --- /dev/null +++ b/nano/csv.nanorc @@ -0,0 +1,16 @@ +# Rainbow CSV highlighting rules (12 column coverage) +# Inspired by https://github.com/mechatroner/rainbow_csv +syntax "CSV" "\.csv$" + +color brightmagenta "^("([^"]*"")*[^"]*",?)("([^"]*"")*[^"]*",?)("([^"]*"")*[^"]*",?)("([^"]*"")*[^"]*",?)("([^"]*"")*[^"]*",?)("([^"]*"")*[^"]*",?)("([^"]*"")*[^"]*",?)("([^"]*"")*[^"]*",?)("([^"]*"")*[^"]*",?)("([^"]*"")*[^"]*",?)("([^"]*"")*[^"]*",?)("([^"]*"")*[^"]*",?)|^([^,]*,?))?([^,]*,?))?([^,]*,?))?([^,]*,?))?([^,]*,?))?([^,]*,?))?([^,]*,?))?([^,]*,?))?([^,]*,?))?([^,]*,?))?([^,]*,?))?([^,]*,?))?" +color brightcyan "^("([^"]*"")*[^"]*",?)("([^"]*"")*[^"]*",?)("([^"]*"")*[^"]*",?)("([^"]*"")*[^"]*",?)("([^"]*"")*[^"]*",?)("([^"]*"")*[^"]*",?)("([^"]*"")*[^"]*",?)("([^"]*"")*[^"]*",?)("([^"]*"")*[^"]*",?)("([^"]*"")*[^"]*",?)("([^"]*"")*[^"]*",?)|^([^,]*,?))?([^,]*,?))?([^,]*,?))?([^,]*,?))?([^,]*,?))?([^,]*,?))?([^,]*,?))?([^,]*,?))?([^,]*,?))?([^,]*,?))?([^,]*,?))?" +color brightblue "^("([^"]*"")*[^"]*",?)("([^"]*"")*[^"]*",?)("([^"]*"")*[^"]*",?)("([^"]*"")*[^"]*",?)("([^"]*"")*[^"]*",?)("([^"]*"")*[^"]*",?)("([^"]*"")*[^"]*",?)("([^"]*"")*[^"]*",?)("([^"]*"")*[^"]*",?)("([^"]*"")*[^"]*",?)|^([^,]*,?))?([^,]*,?))?([^,]*,?))?([^,]*,?))?([^,]*,?))?([^,]*,?))?([^,]*,?))?([^,]*,?))?([^,]*,?))?([^,]*,?))?" +color brightyellow "^("([^"]*"")*[^"]*",?)("([^"]*"")*[^"]*",?)("([^"]*"")*[^"]*",?)("([^"]*"")*[^"]*",?)("([^"]*"")*[^"]*",?)("([^"]*"")*[^"]*",?)("([^"]*"")*[^"]*",?)("([^"]*"")*[^"]*",?)("([^"]*"")*[^"]*",?)|^([^,]*,?))?([^,]*,?))?([^,]*,?))?([^,]*,?))?([^,]*,?))?([^,]*,?))?([^,]*,?))?([^,]*,?))?([^,]*,?))?" +color brightgreen "^("([^"]*"")*[^"]*",?)("([^"]*"")*[^"]*",?)("([^"]*"")*[^"]*",?)("([^"]*"")*[^"]*",?)("([^"]*"")*[^"]*",?)("([^"]*"")*[^"]*",?)("([^"]*"")*[^"]*",?)("([^"]*"")*[^"]*",?)|^([^,]*,?))?([^,]*,?))?([^,]*,?))?([^,]*,?))?([^,]*,?))?([^,]*,?))?([^,]*,?))?([^,]*,?))?" +color brightred "^("([^"]*"")*[^"]*",?)("([^"]*"")*[^"]*",?)("([^"]*"")*[^"]*",?)("([^"]*"")*[^"]*",?)("([^"]*"")*[^"]*",?)("([^"]*"")*[^"]*",?)("([^"]*"")*[^"]*",?)|^([^,]*,?))?([^,]*,?))?([^,]*,?))?([^,]*,?))?([^,]*,?))?([^,]*,?))?([^,]*,?))?" +color cyan "^("([^"]*"")*[^"]*",?)("([^"]*"")*[^"]*",?)("([^"]*"")*[^"]*",?)("([^"]*"")*[^"]*",?)("([^"]*"")*[^"]*",?)("([^"]*"")*[^"]*",?)|^([^,]*,)?([^,]*,)?([^,]*,)?([^,]*,)?([^,]*,)?([^,]*,)?" +color magenta "^("([^"]*"")*[^"]*",?)("([^"]*"")*[^"]*",?)("([^"]*"")*[^"]*",?)("([^"]*"")*[^"]*",?)("([^"]*"")*[^"]*",?)|^([^,]*,)?([^,]*,)?([^,]*,)?([^,]*,)?([^,]*,)?" +color blue "^("([^"]*"")*[^"]*",?)("([^"]*"")*[^"]*",?)("([^"]*"")*[^"]*",?)("([^"]*"")*[^"]*",?)|^([^,]*,)?([^,]*,)?([^,]*,)?([^,]*,)?" +color yellow "^("([^"]*"")*[^"]*",?)("([^"]*"")*[^"]*",?)("([^"]*"")*[^"]*",?)|^([^,]*,)?([^,]*,)?([^,]*,)?" +color green "^("([^"]*"")*[^"]*",?)("([^"]*"")*[^"]*",?)|^([^,]*,)?([^,]*,)?" +color red "^("([^"]*"")*[^"]*",?)|^([^,]*,?))?" diff --git a/nano/cu.nanorc b/nano/cu.nanorc new file mode 100755 index 0000000..41de22b --- /dev/null +++ b/nano/cu.nanorc @@ -0,0 +1,47 @@ +## Syntax highlights in GNU Nano for nVidia CUDA +## (C) 05/2012 Lilian Besson (lilian DOT besson AT normale DOT fr) +## Last version : http://besson.qc.to/NanoSyntax/cu.nanorc. +## +syntax "cu" "\.(cu)$" "rlwrap" + +color brightred "\<[A-Z_][0-9A-Z_]+\>" +color green "\<(float|double|bool|char|int|short|long|sizeof|enum|void|static|const|struct|union|typedef|extern|(un)?signed|inline)\>" +color green "\<((s?size)|((u_?)?int(8|16|32|64|ptr)))_t\>" +color green "\<(class|namespace|template|public|protected|private|typename|this|friend|virtual|using|mutable|volatile|register|explicit)\>" +color brightyellow "\<(for|if|while|do|else|case|default|switch)\>" +color brightyellow "\<(try|throw|catch|operator|new|delete)\>" +color magenta "\<(goto|continue|break|return)\>" + +## Specific CUDA stuffs +color red "\<(__host__|__global__|__device__|threadIdx|blockIdx|blockDim|cudaMalloc|cudaMemcpy|cudaMemcpyHostToDevice|cudaMemcpyDeviceToHost|dim3|grids|threads|cudaFree)\>" +## threads and blocks kernel call +## color cyan "<<<.*>>>" +color cyan start="<<<" end=">>>" + +## Others +color brightcyan "^[[:space:]]*#[[:space:]]*(define|include(_next)?|(un|ifn?)def|endif|el(if|se)|if|warning|error|pragma)" +color brightmagenta "'([^'\]|(\\["'abfnrtv\\]))'" "'\\(([0-3]?[0-7]{1,2}))'" "'\\x[0-9A-Fa-f]{1,2}'" +## +## GCC builtins +color cyan "__attribute__[[:space:]]*\(\([^)]*\)\)" "__(aligned|asm|builtin|hidden|inline|packed|restrict|section|typeof|weak)__" +## +## String highlighting. You will in general want your comments and +## strings to come last, because syntax highlighting rules will be +## applied in the order they are read in. +color brightyellow "<[^= ]*>" ""(\\.|[^"])*"" +## +## This string is VERY resource intensive! +color brightyellow start=""(\\.|[^"])*\\[[:space:]]*$" end="^(\\.|[^"])*"" + +## Comment highlighting +color brightblue "//.*" +color brightwhite start="/\*" end="\*/" + +## Trailing whitespace +color ,green "[[:space:]]+$" + +## Parenthesis and brackets +color brightcyan "\<((|)|\+|\*|\\|;|:|,|\?|\.|$)\>" + +## FIXME TODO README +color Red "\<(FIXME|README|TODO)\>" diff --git a/nano/cython.nanorc b/nano/cython.nanorc new file mode 100755 index 0000000..3be7546 --- /dev/null +++ b/nano/cython.nanorc @@ -0,0 +1,30 @@ +## Cython nanorc, based off of Python nanorc. +## +syntax "cython" "\.pyx$" "\.pxd$" "\.pyi$" +icolor brightred "def [ 0-9A-Z_]+" +icolor brightred "cpdef [ 0-9A-Z_]+\(.*?\):" +icolor brightred "cdef cppclass [ 0-9A-Z_]+\(.*?\):" + + + +# Python Keyword Color +color green "\<(and|as|assert|class|def|DEF|del|elif|ELIF|else|ELSE|except|exec|finally|for|from|global|if|IF|import|in|is|lambda|map|not|or|pass|print|raise|try|while|with|yield)\>" +color brightmagenta "\<(continue|break|return)\>" + +# Cython Keyword Color +color green "\<(cdef|cimport|cpdef|cppclass|ctypedef|extern|include|namespace|property|struct)\>" +color red "\<(bint|char|double|int|public|void|unsigned)\>" + +#Operator Color +color yellow "[.:;,+*|=!\%]" "<" ">" "/" "-" "&" + +#Parenthetical Color +color magenta "[(){}]" "\[" "\]" + +#String Color +color cyan "['][^']*[^\\][']" "[']{3}.*[^\\][']{3}" +color cyan "["][^"]*[^\\]["]" "["]{3}.*[^\\]["]{3}" +color cyan start=""""[^"]" end=""""" start="'''[^']" end="'''" + +# Comment Color +color brightblue "#.*$" diff --git a/nano/debian.nanorc b/nano/debian.nanorc new file mode 100755 index 0000000..a945dee --- /dev/null +++ b/nano/debian.nanorc @@ -0,0 +1,20 @@ +## Here is an exmaple for apt's sources.list +## Adapted from http://milianw.de/blog/Syntax-Highlighting-in-Nano +## (mail@milianw.de). +## +syntax "apt/sources.list" "sources\.list(\.old|~)?$" +# component +color brightmagenta "^deb(-src)? ((http|file|ftp):/[^ ]+|cdrom:\[[^\]]+\]/|cdrom:\[[-a-zA-Z0-9\._\(\) ]+\]/) [^ ]+ .+$" +# distribution +color brightred "^deb(-src)? ((http|file|ftp):/[^ ]+|cdrom:\[[^\]]+\]/|cdrom:\[[-a-zA-Z0-9\._\(\) ]+\]/) [^ ]+" +# URI +color brightgreen "(http|file|ftp):/[^ ]+" +# cdroms +# [^\]] does not work... +color brightgreen "cdrom:\[[-a-zA-Z0-9\._\(\) ]+\]/" +# deb / deb-src +color yellow "^deb" +color yellow "^deb-src" +# comments +color brightblue "#.*" + diff --git a/nano/default.nanorc b/nano/default.nanorc new file mode 100755 index 0000000..ed8b207 --- /dev/null +++ b/nano/default.nanorc @@ -0,0 +1,5 @@ +syntax "default" +color green "^#.*" +color brightgreen "^##.*" +color yellow "^###.*" +#color green "^[ \t]*#.* diff --git a/nano/delphi.nanorc b/nano/delphi.nanorc new file mode 100755 index 0000000..f0980a1 --- /dev/null +++ b/nano/delphi.nanorc @@ -0,0 +1,8 @@ +syntax "Delphi" "\.pas$" + +color brightcyan "\<(boolean|byte|char|double|float|integer|long|new|short|this|transient|void)\>" +color brightred "\<(break|case|catch|continue|default|do|else|finally|for|if|then|return|switch|throw|try|while|function)\>" +#color cyan "\<(abstract|unit|class|extends|final|implements|import|instanceof|interface|native|package|private|protected|public|static|strictfp|super|$color brightyellow "\<(until|repeat|var|uses|type|begin|end|const)\>" +color magenta "\<(true|false|null|procedure)\>" +color brightblue "//.*" +color brightblue start="\{" end="\}" diff --git a/nano/desc.nanorc b/nano/desc.nanorc new file mode 100755 index 0000000..ea94078 --- /dev/null +++ b/nano/desc.nanorc @@ -0,0 +1,11 @@ +### all *desc files ( e.g. use.desc, use.local.desc ) +syntax "use" "(\.|/|)desc$" +color green ".*\-" +color white "\:.*$" +color white "\-.*$" +color magenta "\:(\\.|[^'])*\-" +color blue "\-(\\.|[^'])*\:" +color yellow "\/(\\.|[^'])*\:" +color red "x86" "http\:\/\/.*$" +color brightred "\!\!(\\.|[^'])*\!\!" "DO NOT SET THIS FLAG YOURSELF!" +color green "#.*$" diff --git a/nano/dot.nanorc b/nano/dot.nanorc new file mode 100755 index 0000000..40d4d06 --- /dev/null +++ b/nano/dot.nanorc @@ -0,0 +1,8 @@ +syntax "DOT" "\.(dot|gv)$" + +color cyan "\<(digraph|edge|graph|node|subgraph)\>" +color magenta "\<(arrowhead|arrowsize|arrowtail|bgcolor|center|color|constraint|decorateP|dir|distortion|fillcolor|fontcolor|fontname|fontsize|headclip|headlabel|height|labelangle|labeldistance|labelfontcolor|labelfontname|labelfontsize|label|layers|layer|margin|mclimit|minlen|name|nodesep|nslimit|ordering|orientation|pagedir|page|peripheries|port_label_distance|rankdir|ranksep|rank|ratio|regular|rotate|samehead|sametail|shapefile|shape|sides|size|skew|style|tailclip|taillabel|URL|weight|width)\>" +color red "=|->|--" +color yellow ""(\\.|[^"])*"|'(\\.|[^'])*'" +color brightblack "(^|[[:space:]])//.*" +color brightblack start="^\s*/\*" end="\*/" diff --git a/nano/dotemacs.nanorc b/nano/dotemacs.nanorc new file mode 100755 index 0000000..dc2f0aa --- /dev/null +++ b/nano/dotemacs.nanorc @@ -0,0 +1,2 @@ +syntax "dotemacs" "^.emacs$" +color green "^;.*" diff --git a/nano/dotenv.nanorc b/nano/dotenv.nanorc new file mode 100755 index 0000000..3f21b9b --- /dev/null +++ b/nano/dotenv.nanorc @@ -0,0 +1,10 @@ +## Syntax highlight for .env files, eg. https://symfony.com/doc/current/components/dotenv.html +## +## Derived from sh.nanorc +## +syntax "dotenv" "\.env" "\.env\..+" + +color green "(\(|\)|\$|=)" +color brightyellow ""(\\.|[^"])*"" "'(\\.|[^'])*'" +color cyan "(^|[[:space:]])#.*$" +color ,green "[[:space:]]+$" diff --git a/nano/dummy.nanorc b/nano/dummy.nanorc new file mode 100755 index 0000000..be4aff5 --- /dev/null +++ b/nano/dummy.nanorc @@ -0,0 +1,40 @@ +########################################################################## +########################################################################## +# +# +# D U M M Y Ruleset +# +# +# If you want to create your own rules you can use this simple example: +# +# syntax "Dummy" "(\.|/|)foo$" -> this creates the ruleset "Dummy" and it +# matches all filenames ending with foo +# "foo" -> this matches foo exactly +# "foo.*$" -> this matches files beginning with foo +# +# +# +# After you selected the files you can define rulesets for this file: +# +# +# color blue "#.*$" -> colors all after "#" blue on this line +# color red "\@" -> colors all "@" red, \ means to handle it _not_ +# as a special sign +# color yellow "\<(profi)\>" -> colors only the word profi yellow +# color yellow "profi" -> colors all strings "profi" yellow, also in +# profile +# color black "[0-9]" -> colors all numbers black +# color magenta "'(\\.|[^'])*'" -> colors all between ' and ' magenta, +# but only on the same line +# color red "[A-Z0-9\_]+=" -> matches everything folowed by = +# color green "setenv|export" -> matches the string setenv OR export +# color cyan "^.*(foobar).*$" -> colors the whole line cyan, by matching foobar +# on that line +# +# color brightred,blue start="" +# +# -> colors all between brightred on blue +# even if there are more lines between +# +# +########################################################################### diff --git a/nano/ekghistory.nanorc b/nano/ekghistory.nanorc new file mode 100755 index 0000000..09350b2 --- /dev/null +++ b/nano/ekghistory.nanorc @@ -0,0 +1,7 @@ +syntax "ekghistory" "(\.|/|).gg/history" +icolor cyan start="<" end=">" +icolor green ",(\\.|[^\"])*," +color yellow "chatrecv" +color cyan "chatsend" +color brightwhite "[0-9]" + diff --git a/nano/elixir.nanorc b/nano/elixir.nanorc new file mode 100755 index 0000000..25b0cb0 --- /dev/null +++ b/nano/elixir.nanorc @@ -0,0 +1,50 @@ +## Here is an example for Elixir. +## +syntax "Elixir" "\.ex$" "\.exs$" +header "^#!.*/(env +)?elixir( |$)" + +## reserved words +color yellow "\<(case|cond|true|if|false|nil|when|and|or|not|in|fn|do|end|catch|rescue|after|else|with)\>" +color yellow "def[a-z]*" + +## Constants +color brightblue "@[a-z]+" + +## Elixir atoms +color magenta ":[0-9a-z_]+" + +## Elixir Modules +color magenta "[A-Z][a-zA-Z0-9]*" + +## Elixir types +color red "[A-Z][A-Za-z]+\.t\(\)" + +## Some unique things we want to stand out +color brightyellow "\<(__CALLER__|__DIR__|__ENV__|__MODULE__|__STACKTRACE__)\>" +color brightyellow "\<(__add__|__aliases__|__build__|__block__|__deriving__|__info__|__protocol__|__struct__|__using__)\>" + +## sigils +color brightmagenta "~[a-z]\/([^\/])*\/[a-z]*" "~[a-z]\|([^\|])*\|[a-z]*" "~[a-z]\"([^\"])*\"[a-z]*" "~[a-z]\'([^\'])*\'[a-z]*" "~[a-z]\(([^\(\)])*\)[a-z]*" "~[a-z]\[([^\[\]])*\][a-z]*" "~[a-z]\{([^\{\}])*\}[a-z]*" "~[a-z]\<([^\<\>])*\>[a-z]*" + +## Strings, double-quoted +color green ""([^"]|(\\"))*"" + +## Expression substitution. These go inside double-quoted strings, +## "like #{this}". +color brightgreen "#\{[^}]*\}" + +## Strings, single-quoted +color green "'([^']|(\\'))*'" + +## Comments +color cyan "#.*$" "#$" +color brightcyan "##.*$" "##$" + +## "Here" docs +color green start="\"\"\"" end="\"\"\"" + +## Some common markers +color brightcyan "(XXX|TODO|FIXME|\?\?\?)" + +## Trailing spaces +color ,green "[[:space:]]+$" diff --git a/nano/email.nanorc b/nano/email.nanorc new file mode 100755 index 0000000..60eea88 --- /dev/null +++ b/nano/email.nanorc @@ -0,0 +1,5 @@ +syntax "Email" "\.em(ai)?l$" + +color magenta "^>([^>].*|$)" +color blue "^> ?>([^>].*|$)" +color green "^> ?> ?>.*" diff --git a/nano/erb.nanorc b/nano/erb.nanorc new file mode 100755 index 0000000..9a581b2 --- /dev/null +++ b/nano/erb.nanorc @@ -0,0 +1,26 @@ +## A HTML+Ruby set for Syntax Highlighting .erb files (Embedded RubyRails Views etc) ERB +## (c) 2009, Georgios V. Michalakidis - g.michalakidis@computer.org +## Licensed under the CC (Creative Commons) License. +## +## https://github.com/geomic/ERB-And-More-Code-Highlighting-for-nano + +syntax "ERB" "\.erb$" "\.rhtml$" +color blue start="<" end=">" +color white start="<%" end="%>" +color red "&[^;[[:space:]]]*;" +color yellow "\<(BEGIN|END|alias|and|begin|break|case|class|def|defined\?|do|else|elsif|end|ensure|false|for|if|in|module|next|nil|not|or|redo|rescue|retry|return|self|super|then|true|undef|unless|until|when|while|yield)\>" +color brightblue "(\$|@|@@)?\<[A-Z]+[0-9A-Z_a-z]*" +icolor magenta "([ ]|^):[0-9A-Z_]+\>" +color brightyellow "\<(__FILE__|__LINE__)\>" +color brightmagenta "!/([^/]|(\\/))*/[iomx]*" "%r\{([^}]|(\\}))*\}[iomx]*" +color brightblue "`[^`]*`" "%x\{[^}]*\}" +color green ""([^"]|(\\"))*"" "%[QW]?\{[^}]*\}" "%[QW]?\([^)]*\)" "%[QW]?<[^>]*>" "%[QW]?\[[^]]*\]" "%[QW]?\$[^$]*\$" "%[QW]?\^[^^]*\^" "%[QW]?![^!]*!" +color brightgreen "#\{[^}]*\}" +color green "'([^']|(\\'))*'" "%[qw]\{[^}]*\}" "%[qw]\([^)]*\)" "%[qw]<[^>]*>" "%[qw]\[[^]]*\]" "%[qw]\$[^$]*\$" "%[qw]\^[^^]*\^" "%[qw]![^!]*!" +color cyan "#[^{].*$" "#$" +color brightcyan "##[^{].*$" "##$" +color green start="<<-?'?EOT'?" end="^EOT" +color brightcyan "(XXX|TODO|FIXME|\?\?\?)" + +## Trailing spaces +color ,green "[[:space:]]+$" diff --git a/nano/etc-hosts.nanorc b/nano/etc-hosts.nanorc new file mode 100755 index 0000000..eb8a51e --- /dev/null +++ b/nano/etc-hosts.nanorc @@ -0,0 +1,15 @@ +## Make /etc/hosts nicer to read, see `man hosts 5` to see the format +syntax "/etc/hosts" "hosts" + +# IPv4 +color yellow "^[0-9\.]+\s" + +# IPv6 +icolor green "^[0-9a-f:]+\s" + +# interpunction +color normal "[.:]" + +# comments +color brightblack "^#.*" + diff --git a/nano/etc-stuff.nanorc b/nano/etc-stuff.nanorc new file mode 100755 index 0000000..1b80df5 --- /dev/null +++ b/nano/etc-stuff.nanorc @@ -0,0 +1,372 @@ +## /etc/ stuff syntax +## +#syntax "etcconf.d" "conf.d/(\.|/|)" +#color magenta "\".*$" +#color blue "#.*$" + +syntax "group" "group$" +color green "[0-9]\:.*$" +color brightwhite "[0-9]" +icolor brightred "^[[:space:]]*[.0-9A-Z_]*:" + +syntax "modules" "modules.conf$" "modules.d/(\.|/|)" +color brightwhite "[0-9]" +color red "alias" +color brightred "(probeall|options)" +color green "#.*$" + +syntax "modprobe" "modprobe.conf$" +color brightwhite "[0-9]" +color red "alias" +color brightred "options" +color magenta "[a-zA-Z0-9\_]+=" +color green "#.*$" + +syntax "hosts" "hosts$" +#color brightwhite "[0-9]" +color yellow "^[[:space:]]*[.0-9A-Z_]*.*$" +color brightblue "^[[:space:]]*[.0-9A-Z_]*" +color red "127.0.0.1" +color cyan "\:\:" +color green "#.*$" + +syntax "mplayer" "mplayer.conf$" +color brightgreen "\=.*$" +color brightred "no" +color cyan "\=" +color green "#.*$" + +syntax "mplayerplugin" "mplayerplug\-in.conf$" +color brightgreen "\=.*$" +color brightred "0" +color cyan "\=" +color green "#.*$" + +syntax "sensors" "sensors.conf$" +color brightyellow "\".*$" +color yellow "\<(label|compute|set|chip)\>" +color green "#.*$" + +syntax "sysctl" "sysctl.conf$" +color brightwhite "[0-9]" +color cyan "\=" +color green "#.*$" + +syntax "dircolors" "DIR_COLORS$" +color yellow "\<(TERM|NORMAL|FILE|DIR|LINK|FIFO|SOCK|DOOR|BLK|CHR|ORPHAN|MISSING|SETUID|SETGID)\>" +color yellow "\<(STICKY|EXEC|STICKY_OTHER_WRITABLE|OTHER_WRITABLE)\>" +color brightblack "[0-9][0-9]\;.*$" +color cyan "\.[.0-9A-Z_]*[[:space:]]" +color green "#.*$" + +syntax "modes" "fb.modes$" +color yellow "\<(mode|endmode)\>" +color cyan "\<(geometry|timings|hsync|vsync|double)\>" +color green "#.*$" + +syntax "serial" "serial.conf$" +color brightwhite "[0-9]" +color cyan "\<(uart|port|irq|fourport)\>" +color green "#.*$" + +syntax "services" "services$" +color cyan "/tcp" +color magenta "udp" +color brightblack "/" +color brightwhite "[0-9]" +color green "#.*$" + +syntax "crontab" "crontab$" +color brightwhite "[0-9]" +color cyan "\*" +color yellow "[[:space:]]/.*$" +color brightblack "(&|>)" +color green "#.*$" + +syntax "nscd" "nscd.conf$" +color cyan "(passwd|group|hosts)" +color yellow "([0-9]|yes)" +color green "#.*$" + +syntax "rsync" "rsyncd.conf$" +color cyan "(hosts|(u|g)id|pid\ file|use\ chroot|read\ only|address|max\ connections|motd\ file)" +color cyan "(log\ format|syslog\ facility|timeout)" +color yellow "(path|comment|exclude)" +color brightyellow start="\[" end="\]" +color green "#.*$" + +syntax "lilo" "lilo.conf$" +color cyan "(boot|map|install|menu\-scheme|timeout|delay|prompt|vga|default)" +color brightwhite "[0-9]" +color magenta "(lba32|linear|compact|image)" +color brightyellow "(root|label|read\-only)" +color yellow "\/.*$" +color green "#.*$" + +syntax "hdparm" "hdparm$" +color cyan "(pata|sata)_all_args" +color cyan "[A-Za-z0-9]*_args" +color magenta "\".*$" +color green "#.*$" + +syntax "ini" "\.ini$" +color yellow "\[.*]" +color green "\;.*$" + +syntax "smbconf" "smb.conf$" +color brightcyan "\=.*$" +color cyan "\/.*$" +color brightred "(no|No)" +color brightgreen "(yes|Yes)" +color brightyellow "(workgroup.*$|hosts\ allow.*$|interfaces.*$|netbios\ name.*$)" +color yellow "\[.*]|\=" +icolor magenta "^[[:space:]]*[.A-Z]*" +icolor magenta "^[[:space:]]*[.A-Z]*[[:space:]]*[.A-Z]*" +icolor magenta "^[[:space:]]*[.A-Z]*[[:space:]]*[.A-Z]*[[:space:]]*[.A-Z]*" +color green "\;.*$" +color green "#.*$" + +syntax "mke2fs" "mke2fs.conf$" +color cyan "(base_features|blocksize|inode_ratio)" +color yellow "(small|floppy|news|largefile|largefile4)" +color brightwhite "[0-9]" +color brightyellow start="\[" end="\]" +color blue "\{|\}" +color brightblack "\=" +color green "#.*$" + +#this on may need fewer colors ;) +syntax "squidconf" "squid.conf$" +color brightyellow "(http_port|hierarchy_stoplist|maximum_object_size|cache_dir|dns_testnames)" +color brightyellow "(coredump_dir|pipeline_prefetch|cache_mgr|visible_hostname|ftp_user|client_netmask)" +color cyan "(acl|refresh_pattern|quick_abort_(min|max)|(cache|memory)_replacement_policy|(access|cache|cache_store)_log|cache_host)" +color yellow "((http|icp|snmp)_access|snmp_port|parent|sibling|anonymize_headers|fake_user_agent)" +color brightgreen "(allow|transparent|[[:space:]]on)" +color brightred "(deny|reload\-into\-ims|override\-expire|override\-lastmod|[[:space:]]off)" +color magenta "(src|dst|method)" +color brightcyan "(seconds|minutes|hours|(G|M|K)B)" +color brightblack "[0-9]" +color green "#.*$" + +syntax "distcchosts" "/etc/distcc/hosts$" +color brightblue "[0-9]" +color yellow "localhost" +color magenta "(/|@|:)" +color green "#.*$" + +syntax "logrotate" "logrotate.conf$" +color brightwhite "[0-9]" +color magenta start="/" end="[[:space:]]" +color cyan "(create|compress|include|notifempty|nomail|noolddir|\{|\})" +color yellow "(weekly|daily|rotate|postrotate|sharedscripts)" +color magenta "logrotate" +color green "#.*$" + +syntax "ppppears" "/etc/ppp/peers/(\.|/|)" +color brightwhite "user.*$" +color brightyellow "user" +color brightyellow start="\"" end="\"" +color yellow "lcp\-(echo\-(interval|failure)|max\-configure|restart)" +color yellow "(debug|sync|no(ccp|pcomp|accomp)|deflate|bsdcomp|usepeerdns|pty)" +color cyan "(lock|defaultroute|noipdefault|noauth|holdoff|maxfail|persist|asyncmap|detach|updetach|cdtrcts)" +color brightwhite "[0-9]" +color magenta "(\@|\,|\.)" +color green "#.*$" + +syntax "dhcpconf" "dhcpd.conf$" +icolor brightgreen "^[[:space:]]*[.A-Z]*[[:space:]]*[.A-Z]*|ad\-hoc|interim" +color cyan "(authoritative|ddns\-update\-style|subnet|host|log\-facility)" +color brightblue "(netmask|routers|option|(netbios|domain)-nam(e|e-servers)|(default|max)-lease-time)|range|broadcast\-address|subnet-mask" +color brightyellow start="\"" end="\"" +color yellow "(hardware|ethernet|fixed\-address)" +color brightblack "\:|\;|\{|\})"" +color green "#.*$" + +syntax "hibernateconf" "/etc/hibernate/common.conf$" +color magenta "^[[:space:]]*[.A-Z]*" +color brightwhite start="'" end="'" +color brightgreen "yes" +color brightred "no" +color brightcyan "auto" +color green "#.*$" +color brightcyan "##.*$" +color yellow "###.*$" +color cyan "####.*$" + +syntax "nsswitch" "nsswitch.conf$" +icolor cyan "^[[:space:]]*[.0-9A-Z_]*:" +color magenta "\:" +color green "#.*$" + +syntax "sane" "sane.d/(\.|/|)" +color brightgreen "(scsi|usb|parport|auto)" +color brightred "option" +color yellow "(override|vendor|model)" +color cyan "/.*$" +color green "#.*$" + +syntax "syslogconf" "syslog.conf$" +icolor cyan "(\*|\;|\.|\,|\\)" +color magenta "/.*$" +color brightblue "-.*$" +color brightwhite "\=" +color green "#.*$" + +## these colors need to change... +syntax "udevrules" "\.rules$" +color brightwhite "[0-9]" +color brightblack "(ACTION|SUBSYSTEM|DEVPATH|OPTIONS|WAIT_FOR_SYSFS|ENV|KERNEL|NAME|MODE|GROUP|SYMLINK|DRIVERS|PROGRAM|RUN)" +color brightblack "(GOTO|IMPORT|ATTRS|SUBSYSTEMS|DVB|IR|BUS|SYSFS|ATTR|LABEL)" +color yellow "(add|net|scsi|drivers|module|address|bus|devices|ioerr_cnt|ignore_device|svga|video|tt(y(S|USB)|y|s)|last_rule)" +color yellow "(pnp|(au|ra)dio|tape|disk|snd|microcode|f(b|d|loppy|irmware)|usb|lp|kbd|parport|block|ide|misc|netlink|input)" +color yellow "(mouse|event|joystick|psmouse|atkbd|spkr|pcspkr|ir|dvb|persistent|storage|end|scanner|sound|dialout|console)" +color yellow "(cdrom|cdrw|dvd|dvdrw|isdn|pty|vcs|vcsa|ippp|dcbri|ircomm|capi|card|nvidia|rtc|agpgart|psaux|ptmx|sd|dasd|)" +color yellow "(ataraid|cciss|ida|rd|3dfx|control|hw|pcm|midi|timer|seq|cpu|msr|dm|i2c|mice|js|ts|loop|md|uinput|inotify|aoe)" +color brightyellow "(ID_(SERIAL|PATH|CLASS|EDD|CDROM|CDROM_(DVD|DVD_R|CD_RW))|program|parent|removable|GENERATED|COMMENT)" +color brightyellow "(id(Vendor|Product)|PHYSDEVBUS|(UDEV|UDEVD)_EVENT|INTERFACE_NEW|MODALIAS|modalias|alias|name)" +color brightred "(\%(k|r|c|n))" +color blue "(\;|\.|\"|\,)" +color brightblue "(\=|\*|\?)" +color green "#.*$" + +syntax "mailalias" "/etc/mail/aliases$" +icolor brightblue "^[[:space:]]*[.0-9A-Z_]*:" +icolor brightblue "^[[:space:]]*[.0-9A-Z_]*\-[.0-9A-Z_]*:" +color yellow "(\/.*$|root)" +color green "#.*$" + +syntax "wifiradar" "wifi-radar.conf$" +color brightwhite "[0-9]" +color yellow "((f|F)alse|eth[.0-9])|yes|no|[[:space:]]auto|ssid" +color brightgreen start="\[" end="\]" +color green "#.*$" + +syntax "irssi" "irssi.conf$" +icolor brightwhite "(^[[:space:]]*[.0-9A-Z_]*[[:space:]]=|address|name|chatnet|port|autojoin)" +color brightblue ""(\\.|[^\"])*"" +color yellow "(\{|\}|\;)" +color brightblack "\=" +color brightgreen "(Y|y)es|[0-9]" +color brightred "No" +color blue "\"" +color cyan "(servers|chatnets|channels|aliases|statusbar)" +color green "#.*$" + +syntax "proftpd" "proftpd.conf$" +icolor yellow "^[[:space:]]*[.0-9A-Z_]*[[:space:]]" +color brightyellow "ServerType|DefaultServer|ServerIdent|Port[[:space:]]|Umask|MaxInstances|User|Group" +color yellow "(UserAlias|UseFtpUsers)" +color brightgreen "([[:space:]]on|[0-9]|AllowAll)" +color brightred "(off|DenyAll)" +icolor cyan start="<" end=">" +icolor cyan start=""" end=""" +color cyan "xinetd|inetd|standalone" +color green "#.*$" + +syntax "xinetd" "xinetd.conf$" +icolor yellow "^[[:space:]]*[.0-9A-Z_]*[[:space:]]" +color brightgreen "([0-9]|yes)" +color brightred "(off|no)" +color magenta "defaults" +color brightblack "=" +color brightyellow "(\{|\})" +color cyan "/.*$" +color green "#.*$" + +syntax "xinetd.d" "xinetd.d/(\.|/|)" +icolor yellow "^[[:space:]]*[.0-9A-Z_]*[[:space:]]" +color brightgreen "([0-9]|yes)" +color brightred "(off|[[:space:]]no)" +color brightblack "=" +color brightyellow "(\{|\})" +color cyan "/.*$" +color green "#.*$" + +syntax "localegen" "locale(.gen|s.build)" +color cyan "ISO.*$" +color yellow "UTF.*$" +color green "#.*$" + +syntax "clamd" "clamd.conf$" +color brightblack "[0-9]M" +color brightwhite "[0-9]" +color yellow "^[[:space:]]*[.0-9A-Z_]*" +color cyan "^[[:space:]]*[.0-9A-Z_]*[[:space:]]" +color green "#.*$" + +syntax "grcconf" "grc.conf$" +color cyan "conf\..*$" +color yellow "\(.*$|\\.*$" +color green "#.*$" + +syntax "freshclamconf" "freshclam.conf$" +icolor brightcyan "^[[:space:]]*[.A-Z]*[[:space:]]*[.A-Z_]*" +color cyan "\/.*$|[0-9]" +icolor yellow "^[[:space:]]*[.A-Z]*" +color green "#.*$" + +syntax "colorlightbg" "colordiffrc-lightbg$" +color brightblue "=.*$" +icolor yellow "^[[:space:]]*[.A-Z_]*" +color brightblack "=" +color green "#.*$" + +syntax "etc-limits" "limits$" +icolor yellow "^[[:space:]]*[.A-Z_]*" +color green "#.*$" + +syntax "screenrc" "screenrc$" +icolor yellow "^[[:space:]]*[.A-Z_]*" +color blue ""(\\.|[^\"])*"" +color brightwhite "[0-9]" +color red "[[:space:]]off" +color brightgreen "[[:space:]]on" +color magenta "'.*$" +color magenta "[A-Z0-9\_]+=" +color green "#.*$" + +syntax "fdparm" "fdprm$" +icolor brightgreen "^[[:space:]]*[0-9\/a-z]*" +color green "#.*$" + +syntax "securetty" "securetty$" +color cyan "console" +color brightwhite "[0-9]" +color red "vc" +color brightgreen "tt(y|yS|s)" +color green "#.*$" + +syntax "logindefs" "login.defs" + +icolor yellow "^[[:space:]]*[0-9\/a-z_]*" +color brightwhite "[0-9]" +color brightred "no" +color brightgreen "yes" +color green "#.*$" + +syntax "mysql" "my.cnf" +icolor yellow "^[[:space:]]*[0-9\/a-z_-]*" +color cyan start="\[" end="\]" +color green "#.*$" + +syntax "manconf" "man.conf$" +icolor yellow "^[[:space:]]*[.A-Z_0-9]*" +color brightgreen "/.*$" +color green "#.*$" + +syntax "sshdconf" "sshd_config$" +icolor yellow "^[[:space:]]*[.A-Z_0-9]*" +color brightwhite "[0-9]" +color brightblue "/.*$" +color brightred "no" +color brightgreen "yes" +color green "#.*$" + +#these look stupid if you ask me, but hey do better :P +syntax "protocols" "protocols$" +icolor brightgreen "[0-9][[:space:]][[:space:]]*[.A-Z0-9-]*" +icolor brightblue "[.a-z0-9][[:space:]][[:space:]]*[.0-9]" +icolor brightblue "[.a-z0-9][[:space:]][[:space:]]*[.0-9][.0-9]" +icolor brightblue "[.a-z0-9][[:space:]][[:space:]]*[.0-9][.0-9][.0-9]" +icolor yellow "^[[:space:]]*[.A-Z0-9-]*" +color green "#.*$" diff --git a/nano/etcxml.nanorc b/nano/etcxml.nanorc new file mode 100755 index 0000000..240e01a --- /dev/null +++ b/nano/etcxml.nanorc @@ -0,0 +1,29 @@ +############################################################################## +# +# Syntax highlighting for XML files (/etc/fonts/*) +# +# Author: Josef 'Jupp' Schugt, jupp(a)rubyforge.org +# License: GPL 2 or later +# +# Version: 2004-02-25 +# +############################################################################## + +syntax "etcxml" "/etc/fonts/(\.|/|)" "/etc/xdg/(\.|/|)" +color white "^.+$" +color green start="<" end=">" +color cyan "<[^> ]+" +color cyan ">" +color yellow start="" +color yellow start="" +color red "&[^;]*;" + +syntax "etcxml2" "gentoorc$" +color white "^.+$" +color green start="<" end=">" +color cyan "<[^> ]+" +color cyan ">" +color yellow start="" +color yellow start="" +color red "&[^;]*;" + diff --git a/nano/fish.nanorc b/nano/fish.nanorc new file mode 100755 index 0000000..081ee9a --- /dev/null +++ b/nano/fish.nanorc @@ -0,0 +1,15 @@ +## Here is an example for Fish shell scripts. +## +syntax "Fish" "\.fish$" +header "^#!.*/(env +)?fish( |$)" +icolor brightgreen "^[0-9A-Z_]+\(\)" +color green "\<(alias|begin|break|case|continue|contains|else|end|for|function|if|math|return|set|switch|test|while)\>" +color green "(\{|\}|\(|\)|\;|\]|\[|`|\\|\$|<|>|!|=|&|\|)" +color green "\<(and|isatty|not|or|in)\>" +color yellow "--[a-z-]+" +color brightmagenta "\ -[a-z]+" +color brightblue "\<(bg|bind|block|breakpoint|builtin|cd|command|commandline|complete|dirh|dirs|echo|emit|eval|exec|exit|fg|fish|fish_config|fish_ident|fish_pager|fish_prompt|fish_right_prompt|fish_update_completions|fishd|funced|funcsave|functions|help|history|jobs|mimedb|nextd|open|popd|prevd|psub|pushd|pwd|random|read|set_color|status|trap|type|ulimit|umask|vared)\>" +icolor brightred "\$\{?[0-9A-Z_!@#$*?-]+\}?" +color cyan "(^|[[:space:]])#.*$" +color brightyellow ""(\\.|[^"])*"" "'(\\.|[^'])*'" +color ,green "[[:space:]]+$" diff --git a/nano/fortran.nanorc b/nano/fortran.nanorc new file mode 100755 index 0000000..4a8a06c --- /dev/null +++ b/nano/fortran.nanorc @@ -0,0 +1,50 @@ +## Here is an example for Fortran 90/95 + +syntax "fortran" "\.([Ff]|[Ff]90|[Ff]95|[Ff][Oo][Rr])$" + +#color red "\<[A-Z_]a[0-9A-Z_]+\>" +color red "\<[0-9]+\>" + +icolor green "\<(action|advance|all|allocatable|allocated|any|apostrophe)\>" +icolor green "\<(append|asis|assign|assignment|associated|character|common)\>" +icolor green "\<(complex|data|default|delim|dimension|double precision)\>" +icolor green "\<(elemental|epsilon|external|file|fmt|form|format|huge)\>" +icolor green "\<(implicit|include|index|inquire|integer|intent|interface)\>" +icolor green "\<(intrinsic|iostat|kind|logical|module|none|null|only)\>" +icolor green "\<(operator|optional|pack|parameter|pointer|position|private)\>" +icolor green "\<(program|public|real|recl|recursive|selected_int_kind)\>" +icolor green "\<(selected_real_kind|subroutine|status)\>" + +icolor cyan "\<(abs|achar|adjustl|adjustr|allocate|bit_size|call|char)\>" +icolor cyan "\<(close|contains|count|cpu_time|cshift|date_and_time)\>" +icolor cyan "\<(deallocate|digits|dot_product|eor|eoshift|function|iachar)\>" +icolor cyan "\<(iand|ibclr|ibits|ibset|ichar|ieor|iolength|ior|ishft|ishftc)\>" +icolor cyan "\<(lbound|len|len_trim|matmul|maxexponent|maxloc|maxval|merge)\>" +icolor cyan "\<(minexponent|minloc|minval|mvbits|namelist|nearest|nullify)\>" +icolor cyan "\<(open|pad|present|print|product|pure|quote|radix)\>" +icolor cyan "\<(random_number|random_seed|range|read|readwrite|replace)\>" +icolor cyan "\<(reshape|rewind|save|scan|sequence|shape|sign|size|spacing)\>" +icolor cyan "\<(spread|sum|system_clock|target|transfer|transpose|trim)\>" +icolor cyan "\<(ubound|unpack|verify|write|tiny|type|use|yes)\>" + +icolor yellow "\<(.and.|case|do|else|else?if|else?where|end|end?do|end?if)\>" +icolor yellow "\<(end?select|.eqv.|forall|if|lge|lgt|lle|llt|.neqv.|.not.)\>" +icolor yellow "\<(.or.|repeat|select case|then|where|while)\>" + +icolor magenta "\<(continue|cycle|exit|go?to|result|return)\>" + +#Operator Color +color yellow "[.:;,+*|=!\%]" "<" ">" "/" "-" "&" + +#Parenthetical Color +color magenta "[(){}]" "\[" "\]" + +# Add preprocessor commands. +color brightcyan "^[[:space:]]*#[[:space:]]*(define|include|(un|ifn?)def|endif|el(if|se)|if|warning|error)" + +## String highlighting. +icolor cyan "<[^= ]*>" ""(\\.|[^"])*"" +icolor cyan "<[^= ]*>" "'(\\.|[^"])*'" + +## Comment highlighting +icolor brightred "!.*$" "(^[Cc]| [Cc]) .*$" diff --git a/nano/fsharp.nanorc b/nano/fsharp.nanorc new file mode 100755 index 0000000..0ec109d --- /dev/null +++ b/nano/fsharp.nanorc @@ -0,0 +1,39 @@ +syntax "F#" "\.fs$" "\.fsx$" + +# Type and Module Definitions +color brightgreen "type +[A-Za-z0-9]+ *((:) +[A-Za-z0-9.]+)?" +color brightgreen "module +[A-Za-z0-9]+ *((:) +[A-Za-z0-9.]+)?" +color brightmagenta "\<(List|Seq|Array|Option|Choice|Map|list|seq|array|option|choice|ref|in|out)\>" +color brightgreen "<+[A-Za-z0-9'^]+ *((:) +[A-Za-z0-9'^.]+)?>" +# Attributes +color brightmagenta "[<+[A-Za-z0-9]+ *((:) +[A-Za-z0-9.]+)?>]" + +# Annotation +color magenta "@[A-Za-z]+" + +# Basic Types +color brightgreen "\<(bool|byte|sbyte|int16|uint16|int|uint32|int64|uint64|char|decimal|double|float|float32|single|nativeint|IntPtr|unativeint|UIntPtr|object|string)\>" + +# Keywords +color cyan "\<(abstract|and|let|as|assert|base|begin|class|default|delegate|do|for|to|in|while|done|downcast|downto|elif|if|then|else|end|exception|extern|false|finally|try|fixed|fun|function|match|global|inherit|inline|interface|internal|lazy|let!|match!|member|module|mutable|namespace|new|not|not struct|null|of|open|or|override|private|public|rec|return|return!|select|static|struct|true|with|type|upcast|use|use!|val|void|when|yield|yield!)\>" + +color red "[-+/*=<>?:!~%&|]" +color blue "\<([0-9._]+|0x[A-Fa-f0-9_]+|0b[0-1_]+)[FL]?\>" +color magenta "\\([btnfr]|'|\"|\\)" +color magenta "\\u[A-Fa-f0-9]{4}" +# String +color yellow ""(\\.|[^"])*"" + +# Comments +color brightblack "(^|[[:space:]])//.*" +color brightblack start="^\s*/\*" end="\*/" +color brightblack start="\(\*" end="\*\)" +color brightwhite,cyan "TODO:?" + +color ,green "[[:space:]]+$" +color ,red " + +| + +" + +color red "#if .+" +color red "#endif" + +color white start="``" end="``" diff --git a/nano/gemini.nanorc b/nano/gemini.nanorc new file mode 100755 index 0000000..ac8f9d4 --- /dev/null +++ b/nano/gemini.nanorc @@ -0,0 +1,21 @@ +## syntax highlighting for gemini:// markup language + +syntax gemini "\.(gemini|gmi)$" + +# Heading levels +color brightgreen "^#.*" +color brightcyan "^##.*" +color brightmagenta "^###.*" + +# Link Text +color brightred "^=>\s*\S+\s+.*" +# Link URL +color green "^=>\s*\S+" +# Link Prefix +color yellow "^=>" + +# Bullet Lists +color brightblue "^\*.*" + +# Monospaced Blocks +color white,black start="^```" end="^```" diff --git a/nano/genie.nanorc b/nano/genie.nanorc new file mode 100755 index 0000000..0cd3722 --- /dev/null +++ b/nano/genie.nanorc @@ -0,0 +1,53 @@ +## Here is an example for Genie. +syntax "genie" "\.gs$" + +# Namespace. +color magenta "\<(uses|namespace)\>" + +# Data types. +color green "\<(bool|byte|char|date|datetime|decimal|double|float|int|long|object|sbyte|short|single|string|ulong|ushort)\>" + +# Definitions. +color brightred "\<(const|class|construct|def|delegate|enum|exception|extern|event|final|get|init|inline|interface|override|prop|return|set|static|struct|var|virtual|weak)\>" + +# Keywords. +color red "\<(abstract|as|and|break|case|cast|continue|default|delete|div|do|downto|dynamic|else|ensures|except|extern|finally|for|if|implements|in|isa|is|lock|new|not|of|out|or|otherwise|pass|private|raise|raises|readonly|ref|requires|to|try|unless|when|while)\>" + +# Special variables. +color brightcyan "\<(self|super)\>" + +# Null value. +color brightyellow "\<(null)\>" + +# Boolean. +color yellow "\<(false|true)\>" + +# Builtin functions. +color cyan "\<(array|assert|dict|list|max|min|print|prop|sizeof|typeof)\>" + +# Numbers. +color brightmagenta "[0-9][0-9\.]*(m|ms|d|h|s|f|F|l|L)?" + +# Regular expression. +color brightgreen "/(\\.|[^/])*/" + +# Double quoted string. +color brightblue ""(\\.|[^"])*"" + +# Single quoted string. +color brightblue "'(\\.|[^'])*'" + +# Multiline string. +color blue start=""""" end=""""" + +# Line comment. +color yellow "(^|[[:space:]])//.*" + +# Block comment. +color yellow start="^\s*/\*" end="\*/" + +# Trailing whitespace. +color ,green "[[:space:]]+$" + +# Spaces in front or rear of tabs. +color ,red " + +| + +" diff --git a/nano/gentoo.nanorc b/nano/gentoo.nanorc new file mode 100755 index 0000000..16a9127 --- /dev/null +++ b/nano/gentoo.nanorc @@ -0,0 +1,50 @@ +## Here is an example for ebuilds/eclasses +## +syntax "ebuild" "\.e(build|class)$" +## All the standard portage functions +color brightgreen "^src_(unpack|compile|install|test)" "^pkg_(config|nofetch|setup|(pre|post)(inst|rm))" +## Highlight bash related syntax +color green "\<(case|do|done|elif|else|esac|exit|fi|for|function|if|in|local|read|return|select|shift|then|time|until|while|continue|break)\>" +color green "(\{|\}|\(|\)|\;|\]|\[|`|\\|\$|<|>|!|=|&|\|)" +color green "-(e|d|f|r|g|u|w|x|L)\>" +color green "-(eq|ne|gt|lt|ge|le|s|n|z)\>" +## Highlight variables ... official portage ones in red, all others in bright red +color brightred "\$\{?[a-zA-Z_0-9]+\}?" +color red "\<(ARCH|HOMEPAGE|DESCRIPTION|IUSE|SRC_URI|LICENSE|SLOT|KEYWORDS|FILESDIR|WORKDIR|(P|R)?DEPEND|PROVIDE|DISTDIR|RESTRICT|USERLAND)\>" +color red "\<(S|D|T|PV|PF|P|PN|A)\>" "\" "\" "\" +## Highlight portage commands +color magenta "\ [!a-zA-Z0-9_+ -]*" "inherit.*" +color brightblue "\" +color brightblue "\" "\" "\" "\" "\<(has|best)_version\>" "\" +# color brightblue "\<(do|new)(ins|s?bin|doc|lib(|\.so|\.a)|man|info|exe|initd|confd|envd|pam|menu|icon)\>" +color brightblue "\" "\" +# color brightblue "prepall(|docs|info|man|strip)" "prep(info|lib|lib\.(so|a)|man|strip)" +# color brightblue "\<(|doc|ins|exe)into\>" "\" "\<(exe|ins|dir)opts\>" +## Highlight common commands used in ebuilds +color blue "\" "\<(cat|cd|chmod|chown|cp|echo|env|export|grep|let|ln|mkdir|mv|rm|sed|set|tar|touch|unset)\>" +## Highlight comments (doesnt work that well) +color yellow "#.*$" +## Highlight strings (doesnt work that well) +color brightyellow ""(\\.|[^\"])*"" "'(\\.|[^'])*'" +## Trailing space is bad! +color ,green "[[:space:]]+$" + +## Here is an example for Portage control files +## +syntax "/etc/portage" "\.(keywords|mask|unmask|use)$" +## Base text: +color green "^.+$" +## Use flags: +color brightred "[[:space:]]+\+?[a-zA-Z0-9_-]+" +color brightblue "[[:space:]]+-[a-zA-Z0-9_-]+" +## Likely version numbers: +color magenta "-[[:digit:]].*([[:space:]]|$)" +## Accepted arches: +color white "[~-]?\<(alpha|amd64|arm|hppa|ia64|mips|ppc|ppc64|s390|sh|sparc|x86|x86-fbsd)\>" +color white "[[:space:]][~-]?\*" +## Categories: +color cyan "^[[:space:]]*.*/" +## Masking regulators: +color brightmagenta "^[[:space:]]*(=|~|<|<=|=<|>|>=|=>)" +## Comments: +color yellow "#.*$" diff --git a/nano/git.nanorc b/nano/git.nanorc new file mode 100755 index 0000000..0aaf475 --- /dev/null +++ b/nano/git.nanorc @@ -0,0 +1,80 @@ +syntax "git-config" "git(config|modules)$|\.git/config$" + +color brightcyan "\<(true|false)\>" +color cyan "^[[:space:]]*[^=]*=" +color brightmagenta "^[[:space:]]*\[.*\]$" +color yellow ""(\\.|[^"])*"|'(\\.|[^'])*'" +color brightblack "(^|[[:space:]])#([^{].*)?$" +color ,green "[[:space:]]+$" +color ,red " +" + +# This code is free software; you can redistribute it and/or modify it under +# the terms of the new BSD License. +# +# Copyright (c) 2010, Sebastian Staudt + +# A nano configuration file to enable syntax highlighting of some Git specific +# files with the GNU nano text editor (http://www.nano-editor.org) +# +syntax "git-commit" "COMMIT_EDITMSG|TAG_EDITMSG" + +# Commit message +color yellow ".*" + +# Comments +color brightblack "^#.*" + +# Files changes +color white "#[[:space:]](deleted|modified|new file|renamed):[[:space:]].*" +color red "#[[:space:]]deleted:" +color green "#[[:space:]]modified:" +color brightgreen "#[[:space:]]new file:" +color brightblue "#[[:space:]]renamed:" + +# Untracked filenames +color black "^# [^/?*:;{}\\]+\.[^/?*:;{}\\]+$" + +color brightmagenta "^#[[:space:]]Changes.*[:]" +color brightred "^#[[:space:]]Your branch and '[^']+" +color brightblack "^#[[:space:]]Your branch and '" +color brightwhite "^#[[:space:]]On branch [^ ]+" +color brightblack "^#[[:space:]]On branch" + +# Recolor hash symbols + +# Recolor hash symbols +color brightblack "#" + +# Trailing spaces (+LINT is not ok, git uses tabs) +color ,green "[[:space:]]+$" + + +# This syntax format is used for interactive rebasing +syntax "git-rebase-todo" "git-rebase-todo" + +# Default +color yellow ".*" + +# Comments +color brightblack "^#.*" + +# Rebase commands +color green "^(e|edit) [0-9a-f]{7,40}" +color green "^# (e, edit)" +color brightgreen "^(f|fixup) [0-9a-f]{7,40}" +color brightgreen "^# (f, fixup)" +color brightwhite "^(p|pick) [0-9a-f]{7,40}" +color brightwhite "^# (p, pick)" +color blue "^(r|reword) [0-9a-f]{7,40}" +color blue "^# (r, reword)" +color brightred "^(s|squash) [0-9a-f]{7,40}" +color brightred "^# (s, squash)" +color yellow "^(x|exec) [^ ]+ [0-9a-f]{7,40}" +color yellow "^# (x, exec)" + +# Recolor hash symbols +color brightblack "#" + +# Commit IDs +color brightblue "[0-9a-f]{7,40}" + diff --git a/nano/gitcommit.nanorc b/nano/gitcommit.nanorc new file mode 120000 index 0000000..22ae20d --- /dev/null +++ b/nano/gitcommit.nanorc @@ -0,0 +1 @@ +git.nanorc \ No newline at end of file diff --git a/nano/glsl.nanorc b/nano/glsl.nanorc new file mode 100755 index 0000000..d098e29 --- /dev/null +++ b/nano/glsl.nanorc @@ -0,0 +1,15 @@ +syntax "GLSL" "\.(frag|vert|fp|vp|glsl)$" + +color brightblue "[A-Za-z_][A-Za-z0-9_]*[[:space:]]*[()]" +color green "\<(void|bool|bvec2|bvec3|bvec4|int|ivec2|ivec3|ivec4|float|vec2|vec3|vec4|mat2|mat3|mat4|struct|sampler1D|sampler2D|sampler3D|samplerCUBE|sampler1DShadow|sampler2DShadow)\>" +color green "\" +color cyan "\<(const|attribute|varying|uniform|in|out|inout|if|else|return|discard|while|for|do)\>" +color brightred "\<(break|continue)\>" +color brightcyan "\<(true|false)\>" +color red "[-+/*=<>?:!~%&|^]" +color blue "\<([0-9]+|0x[0-9a-fA-F]*)\>" +color brightblack "(^|[[:space:]])//.*" +color brightblack start="^\s*/\*" end="\*/" +color brightwhite,cyan "TODO:?" +color ,green "[[:space:]]+$" +color ,red " + +| + +" diff --git a/nano/go.nanorc b/nano/go.nanorc new file mode 100755 index 0000000..acd32df --- /dev/null +++ b/nano/go.nanorc @@ -0,0 +1,23 @@ +syntax "GO" "\.go$" +comment "//" + +color brightblue "[A-Za-z_][A-Za-z0-9_]*[[:space:]]*[()]" +color brightblue "\<(append|cap|close|complex|copy|delete|imag|len)\>" +color brightblue "\<(make|new|panic|print|println|protect|real|recover)\>" +color green "\<(u?int(8|16|32|64)?|float(32|64)|complex(64|128))\>" +color green "\<(uintptr|byte|rune|string|interface|bool|map|chan|error)\>" +color cyan "\<(package|import|const|var|type|struct|func|go|defer|nil|iota)\>" +color cyan "\<(for|range|if|else|case|default|switch|return)\>" +color brightred "\<(go|goto|break|continue)\>" +color brightcyan "\<(true|false)\>" +color red "[-+/*=<>!~%&|^]|:=" +color blue "\<([0-9]+|0x[0-9a-fA-F]*)\>|'.'" +color yellow ""(\\.|[^"])*"|'(\\.|[^'])*'" +color magenta "\\[abfnrtv'\"\\]" +color magenta "\\([0-7]{3}|x[A-Fa-f0-9]{2}|u[A-Fa-f0-9]{4}|U[A-Fa-f0-9]{8})" +color yellow "`[^`]*`" +color brightblack "(^|[[:space:]])//.*" +color brightblack start="^\s*/\*" end="\*/" +color brightwhite,cyan "TODO:?" +color ,green "[[:space:]]+$" +color ,red " + +| + +" diff --git a/nano/gophermap.nanorc b/nano/gophermap.nanorc new file mode 100755 index 0000000..7c868e2 --- /dev/null +++ b/nano/gophermap.nanorc @@ -0,0 +1,45 @@ +## syntax for gophernicus gophermaps + +syntax gophermap "\.(gophermap|gph)$" + + +# Port Numbers +color yellow "^.[ -~]*.[ -~]*.[ -~]*.[ -~]+" + +# Domains +color red "^.[ -~]*.[ -~]*.[ -~]+" + +# Resource Path (no directories) +color green "^[^1][ -~]*.[ -~]*" + +# Directories (w/ Name) +color brightmagenta "^1[ -~]*.[ -~]*" + +# Names +color brightblue "^[ -~]+." + +# Directories (w/o Name) +color brightyellow "^1[ -~]+.$" + +# URLs +color brightcyan "URL:.*" + + +# Types + +# General +color magenta "^." + +# HTML & Interactive Content +color brightcyan "^(h|7|8)" + +# Info Text +color cyan "^i.*" +color cyan "^[ -~]*$" +color blue "^i" + +# Special Tags & Characters +color brightgreen "^(!|-|:|~|%|=|\*|\.).*" + +# Comments +color white,blue "#.*" diff --git a/nano/gradle.nanorc b/nano/gradle.nanorc new file mode 100755 index 0000000..58d7376 --- /dev/null +++ b/nano/gradle.nanorc @@ -0,0 +1,23 @@ +syntax "groovy" "\.(groovy|gradle)$" + +# Keywords +color brightblue "\<(boolean|byte|char|double|enum|float|int|long|new|short|super|this|transient)\>" +color brightblue "\<(as|assert|break|case|catch|continue|default|do|else|finally|for|goto|if|in|return|switch|throw|try|while)\>" +color brightblue "\<(abstract|class|extends|implements|import|interface|native|package|private|protected|public|static|strictfp|synchronized|throws|trait|void|volatile)\>" +color brightblue "\<(const|def|final|instanceof)\>" +color brightblue "\<(true|false|null)\>" + +# Strings +color brightyellow ""(\\.|[^"])*"" "'(\\.|[^'])*'" + +# Interpolation +icolor yellow "\$\{[^\}]*}" + +# Comments +color cyan "^//.*" +color cyan "\s//.*" +color cyan start="^/\*(\*)?" end="\*/" +color cyan start="\s/\*(\*)?" end="\*/" + +# Trailing whitespace +color ,green "[[:space:]]+$" diff --git a/nano/groff.nanorc b/nano/groff.nanorc new file mode 100755 index 0000000..02b82b8 --- /dev/null +++ b/nano/groff.nanorc @@ -0,0 +1,24 @@ +## Here is an example for groff. +## +syntax "groff" "\.m[ems]$" "\.rof" "\.tmac$" "^tmac." +## The argument of .ds or .nr +color cyan "^\.(ds|nr) [^[[:space:]]]*" +## Single character escapes +color brightmagenta "\\." +## Highlight the argument of \f or \s in the same color +color brightmagenta "\\f." "\\f\(.." "\\s(\+|\-)?[0-9]" +## Newlines +color cyan "(\\|\\\\)n(.|\(..)" +color cyan start="(\\|\\\\)n\[" end="]" +## Requests +color brightgreen "^\.[[:space:]]*[^[[:space:]]]*" +## Comments +color yellow "^\.\\".*$" +## Strings +color green "(\\|\\\\)\*(.|\(..)" +color green start="(\\|\\\\)\*\[" end="]" +## Characters +color brightred "\\\(.." +color brightred start="\\\[" end="]" +## Macro arguments +color brightcyan "\\\\\$[1-9]" diff --git a/nano/haml.nanorc b/nano/haml.nanorc new file mode 100755 index 0000000..ef9be34 --- /dev/null +++ b/nano/haml.nanorc @@ -0,0 +1,16 @@ +syntax "haml" "\.haml$" + +color cyan "-|=" +color white "->|=>" +icolor cyan "([ ]|^)%[0-9A-Z_]+\>" +icolor magenta ":[0-9A-Z_]+\>" +icolor yellow "\.[A-Z_]+\>" +## Double quote & single quote +color green ""([^"]|(\\"))*"" "%[QW]?\{[^}]*\}" "%[QW]?\([^)]*\)" "%[QW]?<[^>]*>" "%[QW]?\$[^$]*\$" "%[QW]?\^[^^]*\^" "%[QW]?![^!]*!" +color green "'([^']|(\\'))*'" "%[qw]\{[^}]*\}" "%[qw]\([^)]*\)" "%[qw]<[^>]*>" "%[qw]\[[^]]*\]" "%[qw]\$[^$]*\$" "%[qw]\^[^^]*\^" "%[qw]![^!]*!" +## Vars +color brightgreen "#\{[^}]*\}" +color brightblue "(@|@@)[0-9A-Z_a-z]+" +## Comments +color brightcyan "#[^{].*$" "#$" + diff --git a/nano/haskell.nanorc b/nano/haskell.nanorc new file mode 100755 index 0000000..bb2a290 --- /dev/null +++ b/nano/haskell.nanorc @@ -0,0 +1,35 @@ +syntax "haskell" "\.hs$" +comment "--" + +## Keywords +color red "\<(as|case|of|class|data|default|deriving|do|forall|foreign|hiding|if|then|else|import|infix|infixl|infixr|instance|let|in|mdo|module|newtype|qualified|type|where)\>" + +## Various symbols +color cyan "(\||@|!|:|_|~|=|\\|;|\(\)|,|\[|\]|\{|\})" + +## Operators +color magenta "(==|/=|&&|\|\||<|>|<=|>=)" + +## Various symbols +color cyan "(->|<-|=>)" +color magenta "\.|\$" + +## Data constructors +color magenta "\<(True|False|Nothing|Just|Left|Right|LT|EQ|GT)\>" + +## Data classes +color magenta "\<(Read|Show|Enum|Eq|Ord|Data|Bounded|Typeable|Num|Real|Fractional|Integral|RealFrac|Floating|RealFloat|Monad|MonadPlus|Functor)\>" + +## Strings +color yellow ""([^\"]|\\.)*"" +## Chars +color brightyellow "'([^\']|\\.)'" + +## Comments +color green "--.*" +color green start="\{-" end="-\}" + +color brightred "undefined" + +## Trailing spaces +color ,green "[[:space:]]+$" diff --git a/nano/havp.nanorc b/nano/havp.nanorc new file mode 100755 index 0000000..8c5cb9d --- /dev/null +++ b/nano/havp.nanorc @@ -0,0 +1,10 @@ + +syntax "havp" "havp.config$" +color brightred "REMOVETHISLINE" +color red "(deleteme|false)" +color brightgreen "true" +color brightwhite "[0-9]" +color yellow "\ \/.*$" +color brightyellow "--[a-z]*" +color cyan "^[[:space:]]*[.A-Z_0-9]*" +color green "#.*$" diff --git a/nano/hcl.nanorc b/nano/hcl.nanorc new file mode 100755 index 0000000..f02308b --- /dev/null +++ b/nano/hcl.nanorc @@ -0,0 +1,36 @@ +## Syntax highlighting for Hashicorp Terraform / HCL files. + +# See: https://github.com/hashicorp/hcl +# Original author: John Boero +# License: GPLv3 or newer + +syntax "hcl" "\.(tf|hcl)$" +# No comments are permitted in JSON. +comment "" + +# Numbers (used as value). +color green ":[[:space:]]*\-?(0|[1-9][0-9]*)(\.[0-9]+)?([Ee]?[-+]?[0-9]+)?" +# Values (well, any string). +color brightmagenta "\".+\"" +# Hex numbers (used as value). +color green ":[[:space:]]*\"#[0-9abcdefABCDEF]+\"" +# Escapes. +color green "\\\\" "\\\"" "\\[bfnrt]" "\\u[0-9abcdefABCDEF]{4})" +# Special words. +color green "(true|false|null|output|path|vault|description|default|value)" + +color brightgreen "(variable|terraform|resource|provider|module)" + +# Names (very unlikely to contain a quote). +color brightblue "\"[^"]+\"[[:space:]]*:" + +# Brackets, braces, and separators. +color brightblue "\[" "\]" +color brightred "\{" "\}" +color brightred "," ":" + +# Comments. +color cyan "(^|[[:space:]]+)(//|#).*$" + +# Trailing whitespace. +color ,green "[[:space:]]+$" diff --git a/nano/histoire.nanorc b/nano/histoire.nanorc new file mode 100755 index 0000000..af4745f --- /dev/null +++ b/nano/histoire.nanorc @@ -0,0 +1,19 @@ +## Coloration syntaxique pour les devoirs d'Histoire +## très limité ! +## Auteur: Lilian Besson + +## On associe ce fichier à l'extension de fichier .histoire +## (qui n'est pas celle d'un vrai type de fichier, mais ce n'est pas grave) +syntax "histoire" "\.histoire$" + +## Maintenant, si ce fichier 'histoire.nanorc' est chargé dans le '~/.nanorc' +## par la ligne : +## include "~/.nano/histoire.nanorc" +## cela permet d'éditer les fichiers truc.histoire comme des devoir d'Histoire + +color brightgreen "[0-9][0-9]*" +color brightgreen "-[0-9][0-9]*" +## On définit les dates comme des nombres entre -9999 et 9999 + +color brightblue "[A-Z][A-Za-z]*" +## On définit les noms propres comme des mots commençant par une majuscule diff --git a/nano/html.j2.nanorc b/nano/html.j2.nanorc new file mode 120000 index 0000000..c18f7cb --- /dev/null +++ b/nano/html.j2.nanorc @@ -0,0 +1 @@ +html.nanorc \ No newline at end of file diff --git a/nano/html.nanorc b/nano/html.nanorc new file mode 100755 index 0000000..f44bb01 --- /dev/null +++ b/nano/html.nanorc @@ -0,0 +1,7 @@ +## Here is a short improved example for HTML. +## +syntax "html" "\.htm[l]?$" +color brightblue start="<" end=">" +color red "&[^;[[:space:]]]*;" +color yellow "".*"|qq\|.*\|" +color red "(alt|bgcolor|height|href|label|longdesc|name|onclick|onfocus|onload|onmouseover|size|span|src|style|target|type|value|width)=" \ No newline at end of file diff --git a/nano/i3.nanorc b/nano/i3.nanorc new file mode 100755 index 0000000..196836e --- /dev/null +++ b/nano/i3.nanorc @@ -0,0 +1,15 @@ +## Here is an example for i3 Window Manager config +## +syntax "i3" "i3/config" +header "^(.*)i3 config file" + +color green "\<(case|do|done|elif|else|esac|exit|fi|for|function|if|in|local|read|return|select|shift|then|time|until|while)\>" +color green "(\{|\}|\(|\)|\;|\]|\[|`|\\|\$|<|>|!|=|&|\|)" +color green "-[Ldefgruwx]\>" +color green "-(eq|ne|gt|lt|ge|le|s|n|z)\>" +color brightblue "\<(cat|cd|chmod|chown|cp|echo|env|export|grep|install|let|ln|make|mkdir|mv|rm|sed|set|tar|touch|umask|unset)\>" +icolor brightgreen "^\s+[0-9A-Z_]+\s+\(\)" +icolor brightred "\$\{?[0-9A-Z_!@#$*?-]+\}?" +color brightyellow ""(\\.|[^"])*"" "'(\\.|[^'])*'" +color cyan "(^|[[:space:]])#.*$" +color ,green "[[:space:]]+$" diff --git a/nano/ical.nanorc b/nano/ical.nanorc new file mode 100755 index 0000000..cd946e7 --- /dev/null +++ b/nano/ical.nanorc @@ -0,0 +1,20 @@ +syntax "iCal" "\.ics$" + +color green start="^BEGIN:VCALENDAR$" end="^END:VCALENDAR$" +color yellow start="^BEGIN:VCARD$" end="^END:VCARD$" +color brightblue start="^BEGIN:VJOURNAL$" end="^END:VJOURNAL$" +color magenta start="^BEGIN:VTIMEZONE$" end="^END:VTIMEZONE" +color cyan start="^BEGIN:VEVENT$" end="^END:VEVENT$" +color brightmagenta start="^BEGIN:VALARM$" end="^END:VALARM$" +color brightcyan start="^BEGIN:VFREEBUSY$" end="^END:VFREEBUSY$" + +# URLs +color blue start="(https?|ftp)://" end="^[^ ]" +# email +icolor blue "mailto:[^ ]+" +icolor white "mailto:" +# parameters +color brightyellow start="^[-A-Z0-9]" end=":" +color white "^[-A-Z0-9]+" +# section markers +color red "^(BEGIN|END):.*$" diff --git a/nano/info.nanorc b/nano/info.nanorc new file mode 100755 index 0000000..1899196 --- /dev/null +++ b/nano/info.nanorc @@ -0,0 +1,18 @@ +## *.Info file syntax +## +syntax "info" "Info.txt$" +color green "[0-9]" +color brightblue "\<(video|codec|bitrate|width|height|General|FileSize|Format|OveralBitRate|PlayTime)\>" +color brightblue "\<(Video|Codec|Bitrate|BitRate|Width|Height|AspectRatio|FrameRate|Bits|SamplingRate)\>" +color brightblue "\<(audio|channel|V(i|I)DEO|CODEC|FORMAT|B(I|i)TRATE|METHOD|R(I|i)P|AUD(I|i)O|RESOLUT(I|i)ON|GENRE)\>" +color brightblue "\<(Audio|Channel|Sound|ASPECT|RAT(i|I)O|MOV(I|i)E|S(i|I)ZE|RUNT(I|i)ME)\>" +color magenta "Movie.*$" +color blue "\<(KHz|kHz|Kbps|fps|MB|KB|channels|MiB|min|kbit\/s|Min)\>" +color brightyellow "\<(DivX|XviD|MPEG\-4|AAC\ LC|H\.264|LAME|NTSC|MPEG1|AVI)\>" +color brightblack "\=" +icolor brightcyan "[.0-9A-Z_]*:" +icolor brightyellow "http:.*$" + + + + diff --git a/nano/ini.nanorc b/nano/ini.nanorc new file mode 100755 index 0000000..d89f729 --- /dev/null +++ b/nano/ini.nanorc @@ -0,0 +1,11 @@ +syntax "INI" "\.(ini|desktop|lfl|override|cfg)$" "(mimeapps\.list|pinforc|setup\.cfg)$" "weechat/.+\.conf$" +header "^\[[A-Za-z]+\]$" + +color brightcyan "\<(true|false)\>" +color cyan "^[[:space:]]*[^=]*=" +color brightmagenta "^[[:space:]]*\[.*\]$" +color red "[=;]" +color yellow ""(\\.|[^"])*"|'(\\.|[^'])*'" +color brightblue "(^|[[:space:]])(#([^{].*)?|;.*)$" +color ,green "[[:space:]]+$" +color ,red " + +| + +" diff --git a/nano/initng.nanorc b/nano/initng.nanorc new file mode 100755 index 0000000..ecc7f43 --- /dev/null +++ b/nano/initng.nanorc @@ -0,0 +1,22 @@ +## InitNG syntax +## +syntax "initngscripts" "\.i$" +icolor brightgreen "^[0-9A-Z_]+\(\)" +color magenta "(daemon|virtual)" +color brightwhite "virtual/.*$" +color brightblack "daemon/.*$" +color yellow "(need|use|respawn|exec\ daemon|also_stop)" +color green "\<(case|do|done|elif|else|esac|exit|fi|for|function|if|in|local|read|return|select|shift|then|time|until|while)\>" +color green "(\{|\}|\(|\)|\;|\]|\[|`|\\|\$|<|>|!|=|&|\|)" +color green "-[Ldefgruwx]\>" +color green "-(eq|ne|gt|lt|ge|le|s|n|z)\>" +color brightblue "\<(cat|cd|chmod|chown|cp|echo|env|export|grep|install|let|ln|make|mkdir|mv|rm|sed|set|tar|touch|umask|unset)\>" +icolor brightred "\$\{?[0-9A-Z_!@#$*?-]+\}?" +color cyan "(^|[[:space:]])#.*$" +color brightyellow ""(\\.|[^"])*"" "'(\\.|[^'])*'" + +syntax "initng-settings" "system.virtual$" "\.runlevel$" +color magenta "daemon" +color cyan "system" +color blue "net" +color red "debug" diff --git a/nano/initscript.nanorc b/nano/initscript.nanorc new file mode 100755 index 0000000..9fc55f5 --- /dev/null +++ b/nano/initscript.nanorc @@ -0,0 +1,28 @@ +## initscripts syntax (stolen from gentoo.nanorc) ;) +## +syntax "initscript" "/etc/init.d/(\.|/|)" +## All the standard portage functions +#color brightgreen "^src_(unpack|compile|install|test)" "^pkg_(config|nofetch|setup|(pre|post)(inst|rm))" +## Highlight bash related syntax +color green "\<(case|do|done|elif|else|esac|exit|fi|for|function|if|in|local|read|return|select|shift|then|time|until|while)\>" +color green "(\{|\}|\(|\)|\;|\]|\[|`|\\|\$|<|>|!|=|&|\|)" +color green "-(e|d|f|r|g|u|w|x|L)\>" +color green "-(eq|ne|gt|lt|ge|le|s|n|z)\>" +## Highlight variables ... official portage ones in red, all others in bright red +color brightred "\$\{?[a-zA-Z_0-9]+\}?" +color red "\<(ARCH|HOMEPAGE|DESCRIPTION|IUSE|SRC_URI|LICENSE|SLOT|KEYWORDS|FILESDIR|WORKDIR|(P|R)?DEPEND|PROVIDE|DISTDIR|RESTRICT|USERLAND)\>" +color red "\<(S|D|T|PV|PF|P|PN|A)\>" "\" "\" "\" +## Highlight portage commands +color magenta "\ [!a-zA-Z0-9_+ -]*" "inherit.*" +color brightblue "\" +color brightblue "\" "\" "\" "\" "\<(has|best)_version\>" "\" +color brightblue "\<(do|new)(ins|s?bin|doc|lib(|\.so|\.a)|man|info|exe|initd|confd|envd|pam|menu|icon)\>" +color brightblue "\" "\" +color brightblue "prepall(|docs|info|man|strip)" "prep(info|lib|lib\.(so|a)|man|strip)" +color brightblue "\<(|doc|ins|exe)into\>" "\" "\<(exe|ins|dir)opts\>" +## Highlight common commands used in ebuilds +color blue "\" "\<(cat|cd|chmod|chown|cp|echo|env|export|grep|let|ln|mkdir|mv|rm|sed|set|tar|touch|unset)\>" +## Highlight comments (doesnt work that well) +color yellow "#.*$" +## Highlight strings (doesnt work that well) +color brightyellow ""(\\.|[^\"])*"" "'(\\.|[^'])*'" diff --git a/nano/inputrc.nanorc b/nano/inputrc.nanorc new file mode 100755 index 0000000..c2f6005 --- /dev/null +++ b/nano/inputrc.nanorc @@ -0,0 +1,10 @@ +syntax "Inputrc" "inputrc$" + +color red "\<(off|none)\>" +color green "\" +color brightblue "\" +color yellow ""(\\.|[^"])*"|'(\\.|[^'])*'" +color magenta "\\.?" +color brightblack "(^|[[:space:]])#([^{].*)?$" +color ,green "[[:space:]]+$" +color ,red " + +| + +" diff --git a/nano/jade.nanorc b/nano/jade.nanorc new file mode 100755 index 0000000..54fddd1 --- /dev/null +++ b/nano/jade.nanorc @@ -0,0 +1,45 @@ +syntax "Jade" "\.jade$" +# Elements +color yellow "^\s*([a-z0-9]+)" +# Main elements +color red "^\s*(html|head|body)" +# Includes +icolor magenta "^\s*(include)" +# Variables +color brightblue "^\s*(\-)\s(var)\s([a-z0-9]+)" +icolor magenta "^\s*-\s(var)$" "^\s*-\s(var)\s" +# Cases +color brightblue "^\s*(case)\s(.*)" +color cyan "^\s*(when)\s(.*)" +icolor magenta "^\s*(case|when|default)$" "^\s*(case|when|default)\s" +color brightred "^\s*-\s(break)$" "^\s*-\s(break)\s" +# Conditionals +icolor magenta "^\s*(if|else|else if)$" "^\s*(if|else|else if)\s" +# For loops +icolor magenta "^\s*-\s(for)" +# Each +icolor magenta "^\s*(each)$" "^\s*(each)\s" +# Parenthesis content +color blue start="\(" end="\)" +# Strings +color cyan "('[^']*')|(\"[^\"]*\")" +# Parenthesis, commas, equals +icolor green "\(" "\)" "\," "\=" +# Comments, dashes and spaces +color blue "\s+(//.*)" +color blue start="/\*" end="\*/" +color white "^\s*(\-)" +color ,green "[[:space:]]+$" +# Unbuffered comments +color brightblue "\s+(//-.*)" +# HTML-style conditional comments +color brightmagenta start="" +color brightmagenta "" +# HTML-style elements +color yellow "<([^!].*)>" +# Pipes +color yellow,magenta "\|" +# Doctype +color brightblack "^\s*(doctype)(.*)" +# Links +icolor brightgreen "https?:\/\/(www\.)?[a-zA-Z0-9@%._\+~#=]{2,256}\.[a-z]{2,6}\b([-a-zA-Z0-9@:%_\+.~#?&//=]*)" "_blank" diff --git a/nano/java.nanorc b/nano/java.nanorc new file mode 100755 index 0000000..a432f81 --- /dev/null +++ b/nano/java.nanorc @@ -0,0 +1,12 @@ +## Here is an example for Java. +## +syntax "java" "\.java$" +color green "\<(boolean|byte|char|double|float|int|long|new|short|this|transient|void)\>" +color red "\<(break|case|catch|continue|default|do|else|finally|for|if|return|switch|throw|try|while)\>" +color cyan "\<(abstract|class|extends|final|implements|import|instanceof|interface|native|package|private|protected|public|static|strictfp|super|synchronized|throws|volatile)\>" +color red ""[^"]*"" +color yellow "\<(true|false|null)\>" +color blue "//.*" +color blue start="/\*" end="\*/" +color brightblue start="/\*\*" end="\*/" +color ,green "[[:space:]]+$" diff --git a/nano/javascript.nanorc b/nano/javascript.nanorc new file mode 100755 index 0000000..2cdd4a2 --- /dev/null +++ b/nano/javascript.nanorc @@ -0,0 +1,25 @@ +syntax "JavaScript" "\.(js|ts)$" +comment "//" +color blue "\<[-+]?([1-9][0-9]*|0[0-7]*|0x[0-9a-fA-F]+)([uU][lL]?|[lL][uU]?)?\>" +color blue "\<[-+]?([0-9]+\.[0-9]*|[0-9]*\.[0-9]+)([EePp][+-]?[0-9]+)?[fFlL]?" +color blue "\<[-+]?([0-9]+[EePp][+-]?[0-9]+)[fFlL]?" +color brightblue "[A-Za-z_][A-Za-z0-9_]*[[:space:]]*[(]|)" +color cyan "\<(break|case|catch|continue|default|delete|do|else|finally)\>" +color cyan "\<(for|function|get|if|in|instanceof|new|return|set|switch)\>" +color cyan "\<(switch|this|throw|try|typeof|var|void|while|with)\>" +color cyan "\<(null|undefined|NaN)\>" +color cyan "\<(import|as|from|export)\>" +color cyan "\<(const|let|class|extends|get|set|of|async|await|yield)\>" +color brightcyan "\<(true|false)\>" +color green "\<(Array|Boolean|Date|Enumerator|Error|Function|Math)\>" +color green "\<(Map|WeakMap|Set|WeakSet|Promise|Symbol)\>" +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 "//.*" +color brightblack "/\*.+\*/" +color brightwhite,cyan "TODO:?" +color yellow ""(\\.|[^"])*"|'(\\.|[^'])*'|(`|\})(\\.|[^`$]|$[^{])*(\$\{|`)" +color ,green "[[:space:]]+$" +color ,red " + +| + +" diff --git a/nano/js.nanorc b/nano/js.nanorc new file mode 100755 index 0000000..79a4af0 --- /dev/null +++ b/nano/js.nanorc @@ -0,0 +1,46 @@ +### all *js files ( e.g. Firefox user.js, prefs.js ) + +## Old version + +#syntax "jsfiles" "(\.|/|)js$" +#color green "//.*$" start="\/\*" end="\*\/" +#color blue "'(\\.|[^'])*'" +#color red ""(\\.|[^\"])*"" +#color brightgreen "\<(true)\>" +#color brightred "\<(false)\>" "http\:\/\/.*$" +#color brightmagenta "[0-9](\\.|[^\"])*)" + +## New updated taken from http://wiki.linuxhelp.net/index.php/Nano_Syntax_Highlighting + +syntax "JavaScript" "\.(js)$" + +## Default +color white "^.+$" + +## Decimal, cotal and hexadecimal numbers +color yellow "\<[-+]?([1-9][0-9]*|0[0-7]*|0x[0-9a-fA-F]+)([uU][lL]?|[lL][uU]?)?\>" + +## Floating point number with at least one digit before decimal point +color yellow "\<[-+]?([0-9]+\.[0-9]*|[0-9]*\.[0-9]+)([EePp][+-]?[0-9]+)?[fFlL]?" +color yellow "\<[-+]?([0-9]+[EePp][+-]?[0-9]+)[fFlL]?" + +## Keywords +color green "\<(break|case|catch|continue|default|delete|do|else|finally)\>" +color green "\<(for|function|if|in|instanceof|new|null|return|switch)\>" +color green "\<(switch|this|throw|try|typeof|undefined|var|void|while|with)\>" + +## Type specifiers +color red "\<(Array|Boolean|Date|Enumerator|Error|Function|Math)\>" +color red "\<(Number|Object|RegExp|String)\>" +color red "\<(true|false)\>" + +## String +color brightyellow "L?\"(\\"|[^"])*\"" +color brightyellow "L?'(\'|[^'])*'" + +## Escapes +color red "\\[0-7][0-7]?[0-7]?|\\x[0-9a-fA-F]+|\\[bfnrt'"\?\\]" + +## Comments +color brightblue start="/\*" end="\*/" +color brightblue "//.*$" diff --git a/nano/json.nanorc b/nano/json.nanorc new file mode 100755 index 0000000..1f79c18 --- /dev/null +++ b/nano/json.nanorc @@ -0,0 +1,13 @@ +syntax "JSON" "\.json$" +header "^\{$" +# You can't add a comment to JSON. +comment "" + +color blue "\<[-]?[1-9][0-9]*([Ee][+-]?[0-9]+)?\>" "\<[-]?[0](\.[0-9]+)?\>" +color cyan "\" +color brightcyan "\<(true|false)\>" +color yellow ""(\\.|[^"])*"|'(\\.|[^'])*'" +color brightyellow "\"(\\"|[^"])*\"[[:space:]]*:" "'(\'|[^'])*'[[:space:]]*:" +color magenta "\\u[0-9a-fA-F]{4}|\\[bfnrt'"/\\]" +color ,green "[[:space:]]+$" +color ,red " + +| + +" diff --git a/nano/julia.nanorc b/nano/julia.nanorc new file mode 100755 index 0000000..44d26dd --- /dev/null +++ b/nano/julia.nanorc @@ -0,0 +1,20 @@ +syntax "julia" "\.jl$" + +color brightcyan "\<(begin|break|catch|continue|function|elseif|else|end)\>" +color brightcyan "\<(finally|for|global|local|if|include|using|require|macro)\>" +color brightcyan "\<(println|return|try|type|while|module)\>" +color brightblue "[A-Za-z_][A-Za-z0-9_]*[[:space:]]*[(]" +color white "[(]" +color red "[-+*/|=%<>&~^]|\<(and|not|or|is|in)\>" +color brightyellow "@[A-Za-z0-9_]+" +color brightmagenta "__[A-Za-z0-9_]+__" +color brightblack "\<(true|false)\>" +color yellow ""(\\.|[^"])*"|'(\\.|[^'])*'" +color yellow "['][^']*[^\\][']" "[']{3}.*[^\\][']{3}" +color yellow "["][^"]*[^\\]["]" "["]{3}.*[^\\]["]{3}" +color yellow start=""""[^"]" end=""""" +color yellow start="'''[^']" end="'''" +color magenta "\\.?" +color cyan "(^|[[:space:]])#([^{].*)?$" +color cyan start="#=" end="=#" +color brightwhite,cyan "TODO:?" diff --git a/nano/keymap.nanorc b/nano/keymap.nanorc new file mode 100755 index 0000000..bd49759 --- /dev/null +++ b/nano/keymap.nanorc @@ -0,0 +1,10 @@ +syntax "Keymap" "\.(k|key)?map$|Xmodmap$" + +color cyan "\<(add|clear|compose|keycode|keymaps|keysym|remove|string)\>" +color cyan "\<(control|alt|shift)\>" +color blue "\<[0-9]+\>" +color red "=" +color yellow ""(\\.|[^"])*"|'(\\.|[^'])*'" +color brightblack "^!.*$" +color ,green "[[:space:]]+$" +color ,red " + +| + +" diff --git a/nano/kickstart.nanorc b/nano/kickstart.nanorc new file mode 100755 index 0000000..255618f --- /dev/null +++ b/nano/kickstart.nanorc @@ -0,0 +1,15 @@ +syntax "KickStart" "\.ks$" "\.kickstart$" + +color brightmagenta "%[a-z]+" +color cyan "^[[:space:]]*(install|cdrom|text|graphical|volgroup|logvol|reboot|timezone|lang|keyboard|authconfig|firstboot|rootpw|user|firewall|selinux|repo|part|partition|clearpart|bootloader)" +color cyan "--(name|mirrorlist|baseurl|utc)(=|\>)" +color brightyellow "\$(releasever|basearch)\>" + +# Packages and groups +color brightblack "^@[A-Za-z][A-Za-z-]*" +color brightred "^-@[a-zA-Z0-9*-]+" +color red "^-[a-zA-Z0-9*-]+" + +color brightblack "(^|[[:space:]])#([^{].*)?$" +color ,green "[[:space:]]+$" +color ,red " + +| + +" diff --git a/nano/kotlin.nanorc b/nano/kotlin.nanorc new file mode 100755 index 0000000..bde7592 --- /dev/null +++ b/nano/kotlin.nanorc @@ -0,0 +1,26 @@ +# Nano syntax file +# Language: Kotlin +# Maintainer: Bjarne Holen +# Edited by: Ritiek Malhotra +# Last Change: 2017 May 24 +# Copyright (c) 2014, Bjarne Holen + +syntax "kotlin" "\.kt$" "\.kts$" +color magenta "\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 yellow "[.:;,+*|=!\%@]" "<" ">" "/" "-" "&" +color green "\<(namespace|as|type|class|this|super|val|var|fun|is|in|object|when|trait|import|where|by|get|set|abstract|enum|open|annotation|override|private|public|internal|protected|out|vararg|inline|final|package|lateinit|constructor|companion|const|suspend|sealed)\>" +color yellow "\<(true|false|null)\>" +color cyan "\<(break|catch|continue|do|else|finally|for|if|return|throw|try|while|repeat)\>" +color brightred "\<(inner|outer)\>" +## +## String highlighting. You will in general want your comments and +## strings to come last, because syntax highlighting rules will be +## applied in the order they are read in. +color brightblue "<[^= ]*>" ""(\\.|[^"])*"" + +## Comment highlighting +color red "^\s*//.*" +color red start="^\s*/\*" end="\*/" + +## Trailing whitespace +color ,green "[[:space:]]+$" diff --git a/nano/ledger.nanorc b/nano/ledger.nanorc new file mode 100755 index 0000000..8d07329 --- /dev/null +++ b/nano/ledger.nanorc @@ -0,0 +1,10 @@ +syntax "Ledger" "(^|\.|/)ledger|ldgr|beancount|bnct$" + +color brightmagenta "^([0-9]{4}(/|-)[0-9]{2}(/|-)[0-9]{2}|[=~]) .*" +color blue "^[0-9]{4}(/|-)[0-9]{2}(/|-)[0-9]{2}" +color brightyellow "^~ .*" +color brightblue "^= .*" +color cyan "^[[:space:]]+(![[:space:]]+)?\(?[A-Za-z ]+(:[A-Za-z ]+)*\)?" +color cyan "^[[:space:]]+(![[:space:]]+)?\(?[A-Za-z_-]+(:[A-Za-z_-]+)*\)?" +color red "[*!]" +color brightblack "^[[:space:]]*;.*" diff --git a/nano/lisp.nanorc b/nano/lisp.nanorc new file mode 100755 index 0000000..5039255 --- /dev/null +++ b/nano/lisp.nanorc @@ -0,0 +1,13 @@ +syntax "Lisp" "(emacs|zile)$" "\.(el|li?sp|scm|ss)$" + +color brightblue "\([a-z-]+" +color red "\(([-+*/<>]|<=|>=)|'" +color blue "\<[0-9]+\>" +icolor cyan "\" +color brightcyan "\<[tT]\>" +color yellow "\"(\\.|[^"])*\"" +color magenta "'[A-Za-z][A-Za-z0-9_-]+" +color magenta "\\.?" +color brightblack "(^|[[:space:]]);.*" +color ,green "[[:space:]]+$" +color ,red " + +| + +" diff --git a/nano/log-stuff.nanorc b/nano/log-stuff.nanorc new file mode 100755 index 0000000..7a1c036 --- /dev/null +++ b/nano/log-stuff.nanorc @@ -0,0 +1,45 @@ +## to have logs interpreted for you in just about 1000 ways use log analyzers +## this only helps in viewing them directly + +## TODO +# getdelta, others... + +syntax "logs" "midentd.log$" "mldonkey.log$" +color brightwhite "[0-9]" +color brightblue "[0-9][0-9]\:[0-9][0-9]\:[0-9][0-9]" +color blue "[0-9][0-9][0-9][0-9]" +color cyan "\].*$" +color brightblack start="\[" end="\]" + +syntax "emergelog" "emerge.log$" +color brightwhite "[0-9]" +color yellow ">>>.*$" +color cyan "\*\*\*.*$" +color magenta "\:\:\:.*$" +color green start="\(" end="\)" +color brightblue "[0-9][0-9]\:[0-9][0-9]\:[0-9][0-9]" +color blue "[0-9][0-9][0-9][0-9]" +icolor red "^[[:space:]]*[.0-9A-Z_]*:" + +syntax "ntplog" "ntp.log$" +icolor red "^[[:space:]]*[.0-9A-Z_]*:" +color brightwhite "[0-9]" +color brightblue "[0-9][0-9]\:[0-9][0-9]\:[0-9][0-9]" +color cyan "\].*$" +color brightblack start="\[" end="\]" + +syntax "cronlog" "cron.log$" +color cyan "/.*$" +color brightblue "[0-9][0-9]\-[.A-Z_]*\-[0-9][0-9]" +color brightwhite "[0-9][0-9]\:[0-9][0-9]" +color magenta "(FILE|USER)" +color yellow "(pid|cmd)" + +syntax "miniserv" "miniserv.log$" "miniserv.error$" +color cyan "Bad\ Request.*$" +color brightred "Access\ denied.*$" +color brightwhite "[0-9]" +color green "(POST|GET|HTTP)" +color brightred "\"" +color yellow "(\:|\+|/|\.|\-)" +color green ".*started$" diff --git a/nano/lua.nanorc b/nano/lua.nanorc new file mode 100755 index 0000000..e41c8d4 --- /dev/null +++ b/nano/lua.nanorc @@ -0,0 +1,72 @@ +############################################################################## +# +# Lua syntax highlighting for Nano. +# +# Author: Matthew Wild +# License: GPL 2 or later +# +# Version: 2007-06-06 +# +# Notes: Originally based on Ruby syntax rc by Josef 'Jupp' Schugt +############################################################################## + + +# Automatically use for '.lua' files +syntax "lua" ".*\.lua$" + +# General +color brightwhite ".+" + +# Operators +color brightyellow ":|\*\*|\*|/|%|\+|-|\^|>|>=|<|<=|~=|=|\.\.|\<(not|and|or)\>" + +# Statements +color brightblue "\<(do|end|while|repeat|until|if|elseif|then|else|for|in|function|local|return)\>" + +# Keywords +color brightyellow "\<(debug|string|math|table|io|coroutine|os)\>\." +color brightyellow "\<(_G|_VERSION|assert|collectgarbage|dofile|error|getfenv|getmetatable|ipairs|load|loadfile|module|next|pairs|pcall|print|rawequal|rawget|rawset|require|select|setfenv|setmetatable|tonumber|tostring|type|unpack|xpcall)\s*\(" + +# Standard library +color brightyellow "io\.\<(close|flush|input|lines|open|output|popen|read|tmpfile|type|write)\>" +color brightyellow "math\.\<(abs|acos|asin|atan2|atan|ceil|cosh|cos|deg|exp|floor|fmod|frexp|huge|ldexp|log10|log|max|min|modf|pi|pow|rad|random|randomseed|sinh|tan)\>" +color brightyellow "os\.\<(clock|date|difftime|execute|exit|getenv|remove|rename|setlocale|time|tmpname)\>" +color brightyellow "package\.\<(cpath|loaded|loadlib|path|preload|seeall)\>" +color brightyellow "string\.\<(byte|char|dump|find|format|gmatch|gsub|len|lower|match|rep|reverse|sub|upper)\>" +color brightyellow "table\.\<(concat|insert|maxn|remove|sort)\>" +color brightyellow "coroutine\.\<(create|resume|running|status|wrap|yield)\>" +color brightyellow "debug\.\<(debug|getfenv|gethook|getinfo|getlocal|getmetatable|getregistry|getupvalue|setfenv|sethook|setlocal|setmetatable|setupvalue|traceback)\>" + +# File handle methods +color brightyellow "\:\<(close|flush|lines|read|seek|setvbuf|write)\>" + +# false, nil, true +color brightmagenta "\<(false|nil|true)\>" + +# External files +color brightgreen "(\<(dofile|require|include)|%q|%!|%Q|%r|%x)\>" + +# Numbers +color red "\<([0-9]+)\>" + +# Symbols +color brightmagenta "(\(|\)|\[|\]|\{|\})" + +# Strings +#color green "\"(\\.|[^\\\"])*\"|'(\\.|[^\\'])*'" + +# Strings +color red "\"(\\.|[^\\\"])*\"|'(\\.|[^\\'])*'" + +# Escapes +color red "\\[0-7][0-7][0-7]|\\x[0-9a-fA-F][0-9a-fA-F]|\\[abefnrs]|(\\c|\\C-|\\M-|\\M-\\C-)." + + +# Shebang +color brightcyan "^#!.*" + +# Simple comments +color green "\-\-.*$" + +# Multiline comments +color green start="\-\-\[" end="]" diff --git a/nano/m3u.nanorc b/nano/m3u.nanorc new file mode 100755 index 0000000..3e237e3 --- /dev/null +++ b/nano/m3u.nanorc @@ -0,0 +1,22 @@ +syntax "m3u" "\.(m3u|m3u8)$" + +# Header text +color brightcyan "^#EXTINF.*,[^,]*$" + +# Header property values +color brightyellow "^#[^:]*:[^ ,]*" +color brightyellow "=[^ ,]*" +color brightyellow "=[\"][^\"]*[\"]" + +# Header property keys +color brightgreen "[a-zA-Z-]*=" + +# Headers +color brightred "^#EXT[-A-Z]*:" +color brightmagenta "^#EXTM3U" + +# Separators +color normal "[,=]" + +# URLs +color normal "^[^#].*" diff --git a/nano/maincf.nanorc b/nano/maincf.nanorc new file mode 100755 index 0000000..c15e5eb --- /dev/null +++ b/nano/maincf.nanorc @@ -0,0 +1,8 @@ +### all *cf files (e.g. main.cf, Postfix ) +syntax "maincf" "(\.|/|)cf$" +color magenta "\=.*$" +color green "#.*$" +color cyan "[A-Z0-9\_]+=" +color blue ""(\\.|[^\"])*"" +color red "\@" + diff --git a/nano/makefile.nanorc b/nano/makefile.nanorc new file mode 100755 index 0000000..93a1e76 --- /dev/null +++ b/nano/makefile.nanorc @@ -0,0 +1,8 @@ +# unattributed syntax highlighting example from wiki.linuxhelp.net/ + +syntax "makefile" "Makefile[^/]*$" +color red "[:=]" +color magenta "\<(if|ifeq|else|endif)\>" +color blue "\$+[{(][a-zA-Z0-9_-]+[})]" +color brightblue "^[^ ]+:" +color green "#.*$" diff --git a/nano/man.nanorc b/nano/man.nanorc new file mode 100755 index 0000000..85efd26 --- /dev/null +++ b/nano/man.nanorc @@ -0,0 +1,9 @@ +## Here is an example for manpages. +## +syntax "man" "\.[1-9]x?$" +color green "\.(S|T)H.*$" +color brightgreen "\.(S|T)H" "\.TP" +color brightred "\.(BR?|I[PR]?).*$" +color brightblue "\.(BR?|I[PR]?|PP)" +color brightwhite "\\f[BIPR]" +color yellow "\.(br|DS|RS|RE|PD)" diff --git a/nano/markdown.nanorc b/nano/markdown.nanorc new file mode 100755 index 0000000..2aa2141 --- /dev/null +++ b/nano/markdown.nanorc @@ -0,0 +1,81 @@ +## Syntax definition for Markdown for coloration with GNU Nano +## (Syntax reference: http://daringfireball.net/projects/markdown/syntax) +## +## (C) 01/2014 Lilian Besson (lilian DOT besson AT normale DOT fr) +## Last version : http://besson.qc.to/NanoSyntax/markdown.nanorc +############################################################################## +# Definition of the name of the syntax : rst +# and capture of the extension : .txt .text .md .markdown +syntax "markdown" "\.md$" "\.markdown$" +############################################################################## +# Numbers +color white "-?[0-9\.][0-9\._,]*([eE]-?)?[0-9\._,]*" +# code block +color brightred,black "(FIXME|TODO|NEW|XXX|HOWTO|DEBUG|WARNING|PEP)" +# wrong links (empty) +color white,red "[a-z][a-z]+://[^([[:alnum:]]|[\]\[])]*" +# Balise et , pour embarquer du JavaScript notamment. +color brightblue,black "" + +# lists (not yet perfect) +color brightwhite "(^ *[\*\+-]([[:blank:]]| *[\*\+-])+)|(^ *#\.[[:blank:]]+)|(^ *[0-9]+\.[[:blank:]]+)|(^ *[\(]?[a-z]+[\.\)][[:blank:]]+)|(^ *[\(]?[A-Z]+[\.\)][[:blank:]]+)" +# options lists +color white "^ *([/\+\-]{1,2}[a-zA-Z0-9][[:blank:]]?([[:alnum:]]|_)*[,=]*([[:alnum:]]|_)*[[:blank:]]*)+" + +## Links and others: +## +## link reference +## color brightgreen "((`[^`]+`_{1,2})|([[:blank:]]*\.\. _[[:alnum:]]+.*: .*$))" +## targets +## color brightgreen "^ *\.\. _[[:alnum:]]+:" + +# email +icolor brightred,black "(mailto:)?[[:alnum:]]([[:alnum:]]|[_\.\[\]\--]|\.|-)*(@|AT)[[:alnum:]]([[:alnum:]]|[_\.\[\]\--]|\.|-)*\.[[:alnum:]]+" +# http, ftp, https, apt, links +icolor red,black "[a-z][a-z]+://[[:alnum:]]([[:alnum:]]|[-_\.~#\?:=%&])*([[:alnum:]]|[-/_\.~#\?:=%&;])*" + +# italics +color red "\*[[:alnum:]]([[:alnum:]]|[[:space:]]|-|,|;|\.|'|\$|\\|/)*\*\\?" +color brightmagenta "\"[a-zA-Z]([[:alnum:]]|[[:space:]]|-|,|;|\.|'|\$|\\|/)*\"\\?" +color brightmagenta "'[a-zA-Z]([[:alnum:]]|-|,|;|\.|'|\$|\\|/)*'\\?" +color brightmagenta "“[a-zA-Z]([[:alnum:]]|-|,|;|\.|'|\$|\\|/)*”\\?" +# bold +color brightyellow "\*\*[^*^*]+\*\*\\?" + +############################################################################## +## Old stuff +# Quotations +color cyan "^>.*" +# Emphasis +color green "_[^_]*_" +color green "\*[^\*]*\*" +# Strong emphasis +color brightgreen "\*\*[^\*]*\*\*" +color brightgreen "__[\_]*__" +# Underline headers +color brightblue "^====(=*)" +color brightblue "^----(-*)" +# Hash headers +color brightcyan "^#.*" +# Linkified URLs (and inline html tags) +color brightmagenta start="<" end=">" +# Links +color brightmagenta "\[.*\](\([^\)]*\))?" +# Link id's: +color brightmagenta "^\[.*\]:( )+.*" +# Code spans +color brightyellow "`[^`]*`" +# Code blocks +# disabled, because indented lines aren't always code blocks +# color brightyellow "^( ).*" +# Links and inline images +color brightred start="!\[" end="\]" +color white start="\[" end="\]" +# Lists +color yellow "^( )*(\*|\+|\-|[0-9]+\.) " +#
+color ,red "^\* \* \*.*$" +color ,red "^- - -.*$" +color ,red "^-----.*$" +color ,red "^----.*$" +color ,red "^---.*$" diff --git a/nano/mgp.nanorc b/nano/mgp.nanorc new file mode 100755 index 0000000..daba282 --- /dev/null +++ b/nano/mgp.nanorc @@ -0,0 +1,8 @@ +## Here is an example for Magicpoint presentations +## +syntax "mgp" "\.mgp$" +header "^%include.*" +icolor green "^%[a-z].*$" +color cyan "(^|[[:space:]])#.*$" +color cyan "(^|[[:space:]])%%.*$" +color ,green "[[:space:]]+$" diff --git a/nano/mimetype.nanorc b/nano/mimetype.nanorc new file mode 100755 index 0000000..b8e0b42 --- /dev/null +++ b/nano/mimetype.nanorc @@ -0,0 +1,6 @@ +syntax "mimetype" "mime.types" +icolor cyan "[.A-Z_]*/" +color brightwhite "/" +color green "[[:space:]].*$" +## comments +color green "#.*$" diff --git a/nano/moonscript.nanorc b/nano/moonscript.nanorc new file mode 100755 index 0000000..776a27a --- /dev/null +++ b/nano/moonscript.nanorc @@ -0,0 +1,54 @@ +#syntax highlighting for MoonScript +#based on leafo/moonscript-vim + +syntax "MoonScript" "\.moon$" + +#statement +color yellow "\<(return|break|continue)\>" +#conditional +color yellow "\<(if|else|elseif|then|switch|when|unless)\>" +#keyword +color yellow "\<(export|local|import|from|with|in|and|or|not|class|extends|super|using|do)\>" +#repeat +color yellow "\<(for|while)\>" +#identifiers (lua 5.1 functions) +color green "\<(assert|collectgarbage|dofile|error|next|print|rawget|rawset|tonumber|tostring)\>" +color green "\<(type|_VERSION|_G|getfenv|getmetatable|ipairs|loadfile|loadstring|pairs)\>" +color green "\<(pcall|rawequal|require|setfenv|setmetatable|unpack|xpcallload|module|select)\>" +color green "package\.(cpath|loaded|loadlib|path|preload|seeall)" +color green "coroutine\.(running|create|resume|status|wrap|yield)" +color green "string\.(byte|char|dump|find|len|lower|rep|sub|upper|format|gsub|gmatch|match|reverse)" +color green "table\.(maxn|concat|sort|insert|remove)" +color green "math\.(abs|acos|asin|atan|atan2|ceil|sin|cos|tan|deg|exp|floor|log|log10|max|min|fmod|modf|cosh|sinh|tanh|pow|rad|sqrt|frexp|ldexp|random|randomseed|pi)" +color green "io\.(stdin|stdout|stderr|close|flush|input|lines|open|output|popen|read|tmpfile|type|write)" +color green "os\.(clock|date|difftime|execute|exit|getenv|remove|rename|setlocale|time|tmpname)" +color green "debug\.(debug|gethook|getinfo|getlocal|getupvalue|setlocal|setupvalue|sethook|traceback|getfenv|getmetatable|getregistry|setfenv|setmetatable)" +#operator +color red "[-+=^*.<>&?%#@!:|\/\\]+" +color red "(and=|or=)" +#function +color brightblue "(->|=>|\(|\)|\[|\]|\{|\}|!\s|!$)" +#boolean +color brightcyan "\<(true|false)\>" +#special type +color brightred "\<(nil)\>" +#class-like name starting with a capital letter +color green "\<[A-Z]\w*\>" +#special variable +color green "\<(self|self\.\w+)\>" +color green "\B@@?\w*" +#constant +color brightgreen "\<[A-Z0-9_]+\>" +#integer (incl. leading plus or minus) +color brightmagenta "\<[-+]?[0-9]+\>" +#float (incl. leading plus or minus) +color brightmagenta "\<[-+]?[0-9]+\.[0-9]+\>" +#hex number +color brightmagenta "\<0[xX]\x+\>" +#some common errors +color green,red "(;$|[[:space:]]+$)" +#string +color brightyellow start="\"" end="\"" +color brightyellow start="\'" end="\'" +#comment +color blue "--.*" diff --git a/nano/mpdconf.nanorc b/nano/mpdconf.nanorc new file mode 100755 index 0000000..3b4220b --- /dev/null +++ b/nano/mpdconf.nanorc @@ -0,0 +1,9 @@ +syntax "MPD" "mpd\.conf$" + +color cyan "\<(user|group|bind_to_address|host|port|plugin|name|type)\>" +color cyan "\<((music|playlist)_directory|(db|log|state|pid|sticker)_file)\>" +color brightmagenta "^(input|audio_output|decoder)[[:space:]]*\{|\}" +color yellow ""(\\.|[^"])*"|'(\\.|[^'])*'" +color brightblack "(^|[[:space:]])#([^{].*)?$" +color ,green "[[:space:]]+$" +color ,red " + +| + +" diff --git a/nano/mutt.nanorc b/nano/mutt.nanorc new file mode 100755 index 0000000..e12fd16 --- /dev/null +++ b/nano/mutt.nanorc @@ -0,0 +1,146 @@ +## Syntax definition for mutt emails with GNU Nano +## +## (C) 02/2013 Lilian Besson (lilian DOT besson AT normale DOT fr) +## Last version : http://besson.qc.to/NanoSyntax/mutt.nanorc +############################################################################## +# Definition of the syntax for emails, under mutt. +syntax "mutt" + +############################################################################## +## Embed rST coloration +## because rST is the badass language! +# Numbers +color white "-?[0-9\.][0-9\._,]*([eE]-?)?[0-9\._,]*" +# code block +color brightred,black "(::|FIXME|TODO|NEW|XXX|HOWTO|DEBUG|WARNING|PEP)" +# wrong links (empty) +color white,red "[a-z][a-z]+://[^([[:alnum:]]|[\]\[])]*" +# literals blocks (quotation) like in emails +color red "^ *>+.*$" +# Specials zones +color yellow "\$[^\$]+\$" +# unknown interpreted text +color green,black "`[[:alnum:]]+`" +# anon link targets +color brightgreen "[[:alnum:]]+_[^[[:alnum:]]]" +color cyan "^[[:blank:]]*__ .*$" +# highligths (fixme) +# color brightmagenta "[^`]?`([[:alnum:]]|[[:space:]]|[,-\.\+\(\)\|\[\])+`[^`]?" +color brightmagenta "`([[:alnum:]]|[,-\.\+\(\)\|\[\])+`" +color magenta,black "`([[:alnum:]]|[[:space:]]|[,-\.\+\(\)\|\[\])+`\\" +# Balise et , pour embarquer du JavaScript notamment. +color brightwhite,black "" +############################################################################## +# +# Comments and directives +# +# comments +color blue "^\.\. [^[\[_]]*.*$" +# unknown directives +color brightwhite,red "^([[:blank:]]|\|)*\.\. [a-z][a-zA-Z0-9_-]*::.*$" +# usual rst (docutils) directives +icolor brightcyan "^([[:blank:]]|\|)*\.\. (warning|attention|caution|danger|error|hint|important|note|tip|image|figure|contents|container|rubric|topic|sidebar|parsed-literal|epigraph|highlights|pull-quote|compound|table|csv-table|list-table|raw|include|class|meta|title|default-role|role|section-numbering|admonition)*::.*$" +# sphinx directives +color brightcyan "^([[:blank:]]|\|)*\.\. (code-block|literalinclude|senctionauthor|codeauthor|index|only|tabularcolumns|productionlist|glossary|hlist|rubric|centered|seealso|deprecated|versionchanged|versionadded|toctree|function|warning)*::.*$" +# sphinx extensions directives +color brightcyan "^([[:blank:]]|\|)*\.\. (gnuplot|runblock|math|todo|todolist|graphviz|digraph|graph|pypi-release)*::.*$" +# rst2s5 additionals directives +color brightcyan "^([[:blank:]]|\|)*\.\. (footer|target-notes)*::.*$" +# directives options +# color cyan "^([[:blank:]]|\|)*:[a-zA-Z][a-zA-Z0-9-]*([[:blank:]]*[[:alnum:]]+(=[[:alnum:]]+)?)*: *" +color cyan ":[a-zA-Z][a-zA-Z0-9-]*([[:blank:]]*[[:alnum:]]+(=[[:alnum:]]+)?)*: *" +############################################################################## +# +# Lists, and tables +# +# lists (not yet perfect) +color brightwhite "(^ *[\*\+-]([[:blank:]]| *[\*\+-])+)|(^ *#\.[[:blank:]]+)|(^ *[0-9]+\.[[:blank:]]+)|(^ *[\(]?[a-z]+[\.\)][[:blank:]]+)|(^ *[\(]?[A-Z]+[\.\)][[:blank:]]+)" +# options lists +color white "^ *([/\+\-]{1,2}[a-zA-Z0-9][[:blank:]]?([[:alnum:]]|_)*[,=]*([[:alnum:]]|_)*[[:blank:]]*)+" +# tables +color white,red "\+--(-+\+)*-+" +color white "\+--(-+\+)*-+\+" +color brightwhite,red "\+==(=+\+)*=+" +color brightwhite "\+==(=+\+)*=+\+" +color brightwhite "^ *==+([[:blank:]]+==+)+" +# special caracter '|' : for tables and for line blocks +color brightwhite "\|" +############################################################################## +# +# Citations and footnotes +# +# Citations +color brightwhite "(\[[[:alnum:]]+\]_)|(^\.\. \[[[:alnum:]]+\])" +# Footnotes +color white "(\[#\*\]_)|(^\.\. \[\*\])" +color white "(\[#[[:alnum:]]*\]_)|(^\.\. \[#[[:alnum:]]*\])" +# Substitutions +color brightblack "(\|[[:alnum:]]+\||^\.\. \|[[:alnum:]]+\| .*)" +############################################################################## +# +# Links and others: +# +# link reference +color brightgreen "((`[^`]+`_{1,2})|([[:blank:]]*\.\. _[[:alnum:]]+.*: .*$))" +# targets +color brightgreen "^ *\.\. _[[:alnum:]]+:" +# email +icolor brightred,black "(mailto:)?[[:alnum:]]([[:alnum:]]|[_\.\[\]\--]|\.|-)*(@|AT)[[:alnum:]]([[:alnum:]]|[_\.\[\]\--]|\.|-)*\.[[:alnum:]]+" +# http, ftp, https, apt, links +icolor red,black "[a-z][a-z]+://[[:alnum:]]([[:alnum:]]|[-_\.~#\?:=%&])*([[:alnum:]]|[-/_\.~#\?:=%&;])*" +############################################################################## +# +# Markup for bold, italics and code +# +# italics +color red "\*[[:alnum:]]([[:alnum:]]|[[:space:]]|-|,|;|\.|'|\$|\\|/)*\*\\?" +color brightmagenta "\"[a-zA-Z]([[:alnum:]]|[[:space:]]|-|,|;|\.|'|\$|\\|/)*\"\\?" +color brightmagenta "'[a-zA-Z]([[:alnum:]]|-|,|;|\.|'|\$|\\|/)*'\\?" +color brightmagenta "“[a-zA-Z]([[:alnum:]]|-|,|;|\.|'|\$|\\|/)*”\\?" +# bold +color brightyellow "\*\*[^*^*]+\*\*\\?" +# error handling +color brightred,black "\|\*\*\*[^*]+\*\*\*\|" +# unknown interpreted texts +color yellow ":[[:alnum:]]+:`[^`]+`\\?" +color yellow "`[^`]+`:[[:alnum:]]+:\\?" +# eq and others +color brightyellow ":(PEP|RFC|sub|sup|strong|code|emphasis|strong|literal):`[^`]+`\\?" +# math +color brightyellow,black ":math:`[^`]+`\\?" +# specials comments (un handle by previous rules) +color red "^\.\. \(c\).*$" +# code +color white,red "``.+``" +#color white,red start="``" end="``" +color yellow "``[^`]+``\\?" +############################################################################## +# +# Titles +# +# h1 +color brightyellow "^###+$" +color yellow "^\*\*\*+$" +# h2 +color brightmagenta "^===+$" +# h3 +color brightred "^---+$" +# h4 +color brightblue "^\^\^\^+$" +# h5 +color blue "^"""+$" +# h6 +color brightmagenta "^~~~+$" +# inline markups +color brightmagenta,black "^```+$" +############################################################################## +## Specials for mutt +# Quotations +color brightred "^>.*" +color red "^> >.*" + +# Headers +color blue,white "^[A-Za-z\-]+:" + +## END +############################################################################## \ No newline at end of file diff --git a/nano/named.nanorc b/nano/named.nanorc new file mode 100755 index 0000000..c10d53c --- /dev/null +++ b/nano/named.nanorc @@ -0,0 +1,14 @@ +## named.conf syntax +## +syntax "named" "named.conf" + +color brightcyan "(\{|\}|\;)" +color brightwhite "[0-9]" +color magenta "(options|zone|IN)" +color yellow "(type|file|allow\-update|notify)" +color cyan "(directory|statistics\-file|forward\ first|forwarders|listen\-on\-v6|listen\-on|allow\-query)" +color cyan "(query\-source\ address|pid\-file)" +color brightyellow ""(\\.|[^\"])*"" "'(\\.|[^'])*'" +## comments +color green "#.*$" +color green "//.*$" diff --git a/nano/nanorc.nanorc b/nano/nanorc.nanorc new file mode 100755 index 0000000..f63d770 --- /dev/null +++ b/nano/nanorc.nanorc @@ -0,0 +1,16 @@ +## Here is an example for nanorc files. +## +syntax "nanorc" "\.?nanorc$" +## Possible errors and parameters +icolor brightwhite "^[[:space:]]*((un)?set|include|syntax|i?color).*$" +## Keywords +icolor brightgreen "^[[:space:]]*(set|unset)[[:space:]]+(autoindent|backup|backupdir|backwards|boldtext|brackets|casesensitive|const|cut|fill|historylog|matchbrackets|morespace|mouse|multibuffer|noconvert|nofollow|nohelp|nonewlines|nowrap|operatingdir|preserve|punct)\>" "^[[:space:]]*(set|unset)[[:space:]]+(quickblank|quotestr|rebinddelete|rebindkeypad|regexp|smarthome|smooth|speller|suspend|tabsize|tabstospaces|tempfile|view|whitespace|wordbounds)\>" +icolor green "^[[:space:]]*(set|unset|include|syntax)\>" +## Colors +icolor yellow "^[[:space:]]*i?color[[:space:]]*(bright)?(white|black|red|blue|green|yellow|magenta|cyan)?(,(white|black|red|blue|green|yellow|magenta|cyan))?\>" +icolor magenta "^[[:space:]]*i?color\>" "\<(start|end)=" +## Strings +icolor white ""(\\.|[^"])*"" +## Comments +icolor brightblue "^[[:space:]]*#.*$" +icolor cyan "^[[:space:]]*##.*$" diff --git a/nano/nginx.nanorc b/nano/nginx.nanorc new file mode 100755 index 0000000..6735073 --- /dev/null +++ b/nano/nginx.nanorc @@ -0,0 +1,13 @@ +syntax "Nginx" "nginx.*\.conf$" "\.nginx$" ".*\/sites\-available\/.*$" ".*\/sites\-enabled\/.*$" +header "^(server|upstream)[^{]*\{$" + +color brightmagenta "\<(events|server|http|location|upstream)[[:space:]]*\{" +color cyan "(^|[[:space:]{;])(access_log|add_after_body|add_before_body|add_header|addition_types|aio|alias|allow|ancient_browser|ancient_browser_value|auth_basic|auth_basic_user_file|autoindex|autoindex_exact_size|autoindex_localtime|break|charset|charset_map|charset_types|chunked_transfer_encoding|client_body_buffer_size|client_body_in_file_only|client_body_in_single_buffer|client_body_temp_path|client_body_timeout|client_header_buffer_size|client_header_timeout|client_max_body_size|connection_pool_size|create_full_put_path|daemon|dav_access|dav_methods|default_type|deny|directio|directio_alignment|disable_symlinks|empty_gif|env|error_log|error_page|expires|fastcgi_buffer_size|fastcgi_buffers|fastcgi_busy_buffers_size|fastcgi_cache|fastcgi_cache_bypass|fastcgi_cache_key|fastcgi_cache_lock|fastcgi_cache_lock_timeout|fastcgi_cache_min_uses|fastcgi_cache_path|fastcgi_cache_use_stale|fastcgi_cache_valid|fastcgi_connect_timeout|fastcgi_hide_header|fastcgi_ignore_client_abort|fastcgi_ignore_headers|fastcgi_index|fastcgi_intercept_errors|fastcgi_keep_conn|fastcgi_max_temp_file_size|fastcgi_next_upstream|fastcgi_no_cache|fastcgi_param|fastcgi_pass|fastcgi_pass_header|fastcgi_read_timeout|fastcgi_send_timeout|fastcgi_split_path_info|fastcgi_store|fastcgi_store_access|fastcgi_temp_file_write_size|fastcgi_temp_path|flv|geo|geoip_city|geoip_country|gzip|gzip_buffers|gzip_comp_level|gzip_disable|gzip_http_version|gzip_min_length|gzip_proxied|gzip_static|gzip_types|gzip_vary|if|if_modified_since|ignore_invalid_headers|image_filter|image_filter_buffer|image_filter_jpeg_quality|image_filter_sharpen|image_filter_transparency|include|index|internal|ip_hash|keepalive|keepalive_disable|keepalive_requests|keepalive_timeout|large_client_header_buffers|limit_conn|limit_conn_log_level|limit_conn_zone|limit_except|limit_rate|limit_rate_after|limit_req|limit_req_log_level|limit_req_zone|limit_zone|lingering_close|lingering_time|lingering_timeout|listen|location|log_format|log_not_found|log_subrequest|map|map_hash_bucket_size|map_hash_max_size|master_process|max_ranges|memcached_buffer_size|memcached_connect_timeout|memcached_next_upstream|memcached_pass|memcached_read_timeout|memcached_send_timeout|merge_slashes|min_delete_depth|modern_browser|modern_browser_value|mp4|mp4_buffer_size|mp4_max_buffer_size|msie_padding|msie_refresh|open_file_cache|open_file_cache_errors|open_file_cache_min_uses|open_file_cache_valid|open_log_file_cache|optimize_server_names|override_charset|pcre_jit|perl|perl_modules|perl_require|perl_set|pid|port_in_redirect|postpone_output|proxy_buffer_size|proxy_buffering|proxy_buffers|proxy_busy_buffers_size|proxy_cache|proxy_cache_bypass|proxy_cache_key|proxy_cache_lock|proxy_cache_lock_timeout|proxy_cache_min_uses|proxy_cache_path|proxy_cache_use_stale|proxy_cache_valid|proxy_connect_timeout|proxy_cookie_domain|proxy_cookie_path|proxy_hide_header|proxy_http_version|proxy_ignore_client_abort|proxy_ignore_headers|proxy_intercept_errors|proxy_max_temp_file_size|proxy_next_upstream|proxy_no_cache|proxy_pass|proxy_pass_header|proxy_read_timeout|proxy_redirect|proxy_send_timeout|proxy_set_header|proxy_ssl_session_reuse|proxy_store|proxy_store_access|proxy_temp_file_write_size|proxy_temp_path|proxy_cache_methods|proxy_pass_request_body|proxy_pass_request_headers|proxy_cache_convert_head|proxy_cache_lock_age|proxy_cache_max_range_offset|proxy_send_lowat|proxy_set_body|proxy_socket_keepalive|proxy_ssl_trusted_certificate|random_index|read_ahead|real_ip_header|recursive_error_pages|request_pool_size|reset_timedout_connection|resolver|resolver_timeout|return|rewrite|root|satisfy|satisfy_any|secure_link_secret|send_lowat|send_timeout|sendfile|sendfile_max_chunk|server|server|server_name|server_name_in_redirect|server_names_hash_bucket_size|server_names_hash_max_size|server_tokens|set|set_real_ip_from|source_charset|split_clients|ssi|ssi_silent_errors|ssi_types|ssl|ssl_certificate|ssl_certificate_key|ssl_ciphers|ssl_client_certificate|ssl_crl|ssl_dhparam|ssl_engine|ssl_prefer_server_ciphers|ssl_protocols|ssl_session_cache|ssl_session_timeout|ssl_verify_client|ssl_verify_depth|ssl_ecdh_curve|ssl_session_tickets|ssl_stapling|ssl_stapling_verify|ssl_stapling_file|ssl_stapling_responder|ssl_buffer_size|ssl_early_data|ssl_password_file|ssl_session_ticket_key|ssl_trusted_certificate|sub_filter|sub_filter_once|sub_filter_types|tcp_nodelay|tcp_nopush|timer_resolution|try_files|types|types_hash_bucket_size|types_hash_max_size|underscores_in_headers|uninitialized_variable_warn|upstream|user|userid|userid_domain|userid_expires|userid_name|userid_p3p|userid_path|userid_service|valid_referers|variables_hash_bucket_size|variables_hash_max_size|worker_priority|worker_processes|worker_rlimit_core|worker_rlimit_nofile|working_directory|xml_entities|xslt_stylesheet|xslt_types)([[:space:]]|$)" +color brightcyan "\<(on|off)\>" +color brightyellow "\$[A-Za-z][A-Za-z0-9_]*" +color red "[*]" +color yellow ""(\\.|[^"])*"|'(\\.|[^'])*'" +color yellow start="'$" end="';$" +color brightblue "(^|[[:space:]])#([^{].*)?$" +color ,green "[[:space:]]+$" +color ,red " + +| + +" diff --git a/nano/nmap.nanorc b/nano/nmap.nanorc new file mode 100755 index 0000000..c573f42 --- /dev/null +++ b/nano/nmap.nanorc @@ -0,0 +1,18 @@ +syntax "NMAP" "\.nmap$" + +color yellow "^Nmap scan report for.*" +color brightwhite "^Not shown.*" +color brightwhite "^Host is up.*" +color brightwhite "^All.*" + +color yellow "^[0-9]+/(tcp|udp).*$" +color cyan "^[0-9]+/(tcp|udp)" + +color brightgreen "(Host is )?(open|up)" +color white "\(([0-9]+\.[0-9]+s latency)\)\." +color brightyellow "filtered" +color brightred "(Host is )?(All .* scanned ports on .*)?(^Not shown: [0-9]+ )?(closed|down)( ports)?" + +color magenta "^PORT *STATE *SERVICE" + +color brightblue "^#.*" \ No newline at end of file diff --git a/nano/nscd.nanorc b/nano/nscd.nanorc new file mode 100755 index 0000000..f18e96d --- /dev/null +++ b/nano/nscd.nanorc @@ -0,0 +1,5 @@ +syntax "nscd" "nscd.conf$" +color cyan "(passwd|group|hosts)" +color yellow "([0-9]|yes)" +color green "#.*$" + diff --git a/nano/objc.nanorc b/nano/objc.nanorc new file mode 100755 index 0000000..cdf6e48 --- /dev/null +++ b/nano/objc.nanorc @@ -0,0 +1,41 @@ +## Here is an example for C/C++/Obj-C. +## +syntax "m" "\.m$" + + +## Stuffs +color brightwhite "\<[A-Z_][0-9A-Z_]+\>" +color green "\<(float|double|BOOL|bool|char|int|short|long|id|sizeof|enum|void|static|const|struct|union|typedef|extern|(un)?signed|inline)\>" +color green "\<[[:alpha:]_][[:alnum:]_]*_t\>" +color green "\<(class|namespace|template|public|protected|private|typename|this|friend|virtual|using|mutable|volatile|register|explicit)\>" +color brightgreen "\<(for|if|while|do|else|case|default|switch)\>" +color brightgreen "\<(try|throw|catch|operator|new|delete)\>" +color brightgreen "\<(goto|continue|break|return)\>" +color brightgreen "@\<(en(code|d)|i(mplementation|nterface)|selector)\>" +## +## GCC builtins +color cyan "__attribute__[[:space:]]*\(\([^)]*\)\)" "__(aligned|asm|builtin|hidden|inline|packed|restrict|section|typeof|weak)__" + +## Selector/method +color brightmagenta "(^|[[:space:]])\[.*[[:space:]].*\]" +color white ":[[:alnum:]]*" +color magenta "[[:alnum:]]*:" +color white "\[[^][:space:]]*\]" + +## +## String highlighting. You will in general want your comments and +## strings to come last, because syntax highlighting rules will be +## applied in the order they are read in. +color brightblack "'([^'\]|(\\["'abfnrtv\\]))'" "'\\(([0-3]?[0-7]{1,2}))'" "'\\x[0-9A-Fa-f]{1,2}'" +color brightblack "<[^= ]*>" ""(\\.|[^"])*"" +color brightblue "@"(\\.|[^"])*"" +## +## This string is VERY resource intensive! +## color brightyellow start=""(\\.|[^"])*\\[[:space:]]*$" end="^(\\.|[^"])*"" + +color brightblue "^[[:space:]]*#[[:space:]]*(define|include|import|(un|ifn?)def|endif|el(if|se)|if|warning|error)" + +## Comment highlighting +color yellow "//.*" +color yellow start="/\*" end="\*/" + diff --git a/nano/ocaml.nanorc b/nano/ocaml.nanorc new file mode 100755 index 0000000..d1bba12 --- /dev/null +++ b/nano/ocaml.nanorc @@ -0,0 +1,32 @@ +## Syntax highlighting for OCaml. + +syntax "OCaml" "\.mli?$" +magic "OCaml" +comment "(*|*)" + +#uid +color red "\<[A-Z][0-9a-z_]{2,}\>" +#declarations +color green "\<(let|val|method|in|and|rec|private|virtual|constraint)\>" +#structure items +color red "\<(type|open|class|module|exception|external)\>" +#patterns +color blue "\<(fun|function|functor|match|try|with)\>" +#patterns-modifiers +color yellow "\<(as|when|of)\>" +#conditions +color cyan "\<(if|then|else)\>" +#blocs +color magenta "\<(begin|end|object|struct|sig|for|while|do|done|to|downto)\>" +#constantes +color green "\<(true|false)\>" +#modules/classes +color green "\<(include|inherit|initializer)\>" +#expr modifiers +color yellow "\<(new|ref|mutable|lazy|assert|raise)\>" +#comments +color white start="\(\*" end="\*\)" +#strings (no multiline handling yet) +color brightblack ""[^\"]*"" +## Trailing spaces +color ,green "[[:space:]]+$" diff --git a/nano/octave.nanorc b/nano/octave.nanorc new file mode 100755 index 0000000..0b188b9 --- /dev/null +++ b/nano/octave.nanorc @@ -0,0 +1,24 @@ +# Source: https://wiki.octave.org/Nano +# Octave syntax colors +syntax "octave" "\.m$" "\.octaverc$" + +# keywords +color brightyellow "(case|catch|do|else(if)?|for|function|if|otherwise|switch|try|until|unwind_protect(_cleanup)?|vararg(in|out)|while)" +color brightyellow "end(_try_catch|_unwind_protect|for|function|if|switch|while)?" +color magenta "(break|continue|return)" + +# storage-type +color green "(global|persistent|static)" +# data-type +color green "(cell(str)?|char|double|(u)?int(8|16|32|64)|logical|single|struct)" + +# embraced +# TODO: the next line needs to be fixed to work properly in all cases +color brightred start="\(" end="\)" +color blue start="\[|\{" end="\]|\}" + +# strings +color yellow ""(\\.|[^\"])*"|'(\\.|[^\"])*'" + +# comments +color brightblue "#.*|%.*" diff --git a/nano/others.nanorc b/nano/others.nanorc new file mode 100755 index 0000000..e7d4b84 --- /dev/null +++ b/nano/others.nanorc @@ -0,0 +1,112 @@ +syntax "infile" ".in$" ".am$" +icolor brightgreen start="\{" end="\}" +color magenta "(if[[:space:]]|endif|else)" +color yellow "^[[:space:]]*[.0-9A-Z_](\\.|[^\"])*(\=|\:)" +color cyan "\((\\.|[^\"])*\)" +color cyan "@(\\.|[^\"])*@" +color brightblack "(\-[.a-z]*|\HAVE[.a-zA-Z_]*)" +color yellow "\/" +color brightblue ""(\\.|[^\"])*"" +color brightyellow "(\$|dnl.*$)" +color green "#.*$" + + +syntax "spec" ".spec$" +color brightwhite "[0-9]" +color cyan "stub" +color yellow "pascal|stdcall|varargs|cdecl" +color brightyellow "\((\\.|[^\"])*\)" +color brightgreen "\@" +color green "#.*$" + +syntax "configurelog" "config.log$" +color cyan "(\:.*$|\=.*$)" +color yellow ""(\\.|[^\"])*"" +color magenta "[.0-9A-Z_a-z]*:" +color yellow "[.A-Z_a-z]*:[0-9]*:" +color cyan start="\/\*" end="\*\/" +color brightgreen "[[:space:]]yes" +color brightred "[[:space:]]no" +color green "#.*$" +color brightgreen "\|.*$" + +syntax "texi" ".texi$" +color brightcyan "\((\\.|[^\"])*\)" +color yellow "(\{|\})" +color brightblue "\$" +color brightblack "\[(\\.|[^\"])*\]" +color brightyellow "@[.a-zA-Z_]*" +color cyan "^[[:space:]]*[.a-zA-Z_]*\:" +color brightred "@c[.a-zA-Z_]*" +color green "#.*$" + + +syntax "desktop" "\.desktop$" +color brightblue "\[(\\.|[^\"])*\]" +color yellow "=.*$" +color brightgreen "\=" + +syntax "lua" "\.lua$" +color brightwhite "[0-9]" +color cyan "local.*$" +color brightblack "\{|\}" +color brightgreen "\=" +color red "\[|\]" +color yellow "\"(\\.|[^\"])*\"" +color green "\-\-.*$" + +syntax "m3u" "\.m3u$" +color green "#.*$" +color brightgreen "http.*$" +color yellow "\/" +color cyan "[.0-9a-zA-Z_-]*\.mp3" + +syntax "bat" "\.bat$" +color yellow "%(\\.|[^\"])*%" +color brightyellow "set[[:space:]]" +color brightgreen "\=" +color green "REM.*$" + +syntax "authors" "AUTHORS$" +color brightgreen "((T|t)ranslators|(D|d)ocumenters|(A|a)uthors|(C|c)ontributors)" +color brightyellow "<(\\.|[^\"])*>" +color yellow "\@" +color cyan "\*.*$" +color brightcyan "\:" +color brightblue "\((\\.|[^\"])*\)" +color green "#.*$" + +syntax "kconfig" "Kconfig$" "Kconfig.(cpu|debug)$" +color brightyellow "(<(\\.|[^\"])*>|\!)" +color brightyellow "\((\\.|[^\"])*\)" +color blue "source.*$" +color brightgreen "(ult[[:space:]]y|\"(\\.|[^\"])*\")" +color brightblue "ult[[:space:]]m" +color brightred "ult[[:space:]]n" +color magenta "default" +color cyan "config.*$" +color yellow "config|menu|(main|end)menu|choice|endchoice" +color brightcyan "(^[[:space:]](bool|def_bool|tristate|depends[[:space:]]on|select|prompt|range|help|string|int|hex))" +color brightmagenta "(\||\&)" +color brightred "\"off\"" +color green "#.*$" + +syntax "la_file" "\.la$" +icolor yellow "^[[:space:]]*[.0-9A-Z_]*=" +color white "\=" +color brightgreen "yes" +color brightred "no" +color brightwhite "[0-9]" +color brightyellow "'(\\.|[^\"])*'" +color green "#.*$" + +syntax "contents" "CONTENTS$" +color brightwhite "[[:space:]][a-z0-9].*$" +color green "dir[[:space:]].*$" +icolor cyan "^[[:space:]]*[.0-9A-Z_]*" +color brightgreen "/usr/shar(e|e/(doc|e/man))/|/include/|/lib/|/usr/" +color yellow "/etc/" +color brightblue "/usr/bin(/|)|/usr/sbin|/bin|/sbin|/etc/init.d/" +color brightyellow "/etc/conf.d/" +color red "/va(r/|r/cache|r/lib/)" +color brightred "/var/cache/" diff --git a/nano/paludis.nanorc b/nano/paludis.nanorc new file mode 100755 index 0000000..1f9ee6e --- /dev/null +++ b/nano/paludis.nanorc @@ -0,0 +1,130 @@ +## Here is an example for Paludis control files +## + +syntax "bashrc" "bashrc$" +## Base text: +color brightblack "^.+$" +## sh syntax: +color brightwhite "\<(case|do|done|elif|else|esac|exit|fi|for|function|if|in|local|read|return|select|shift|then|time|until|while)\>" +icolor magenta "(.+\)|\[.+\])" +color brightwhite "(\{|\}|\(|\)|\;|\]|\[|`|\\|\$|<|>|!|==|&|\|)" +color brightwhite "-[Ldefgruwx]\>" +color brightwhite "-(eq|ne|gt|lt|ge|le|s|n|z)\>" +color brightblue "\<(cat|cd|chmod|chown|cp|echo|env|export|grep|install|let|ln|make|mkdir|mv|rm|sed|set|tar|touch|umask|unset)\>" +icolor brightred "\$\{?[0-9A-Z_!@#$*?-]+\}?" +color ,green "[[:space:]]+$" +color green "\".*\"" +color brightwhite "case[[:space:]]\".+\"" +color brightgreen "\$\{.+\}" +## Package name: +color brightmagenta "\$\{PN\}" +## Keywords: +color brightwhite "(CHOST|CFLAGS|CXXFLAGS|MAKEOPTS)=" +color white "(SKIP_FUNCTIONS|PATH|CCACHE_SIZE|CCACHE_DIR|PALUDIS_USE_SAFE_RESUME)=" +## Comments: +color brightred "#.*$" +color yellow "^#.*$" +color brightyellow "^##[[:space:]].*$" + +syntax "license-use" "(licenses|use)\.conf$" +## Base text: +color brightblack "^.+$" +## Package name: +color brightblue "/.*[[:space:]]" +## Categories: +color cyan "^.*/" +## Version number: +color white "-[[:digit:]]+(\.|[[:digit:]]|-.)*([[:space:]]|::)" +## Repository name: +color magenta "::.*[[:space:]]" +## licenses and use: +color green "[[:space:]][^[:space:]]*" +color red "[[:space:]]-[^[:space:]]*" +## Masking regulators: +color brightred "^(<|<=|=|>=|>)*" +color brightwhite "^(<|<=|=|>=|>)" +## Additional variables: +color brightgreen "(ALSA_CARDS|INPUT_DEVICES|LANGUAGE|LINGUAS|VIDEO_CARDS|PALUDIS_HOOKS):?" +## Mark lines with spaces at end of it: +color brightred ".*[[:space:]]$" +## Comments: +color brightred "#.*$" +color yellow "^#.*$" +color brightyellow "^##[[:space:]].*$" + +syntax "keywords" "keywords\.conf$" +## Base text: +color brightblack "^.+$" +## Package name: +color brightblue "/.*[[:space:]]" +## Categories: +color cyan "^.*/" +## Version number: +color white "-[[:digit:]]+(\.|[[:digit:]]|-.)*([[:space:]]|::)" +## Repository name: +color magenta "::.*[[:space:]]" +## Accepted arches: +color green "[[:space:]][~]?(alpha|amd64|arm|hppa|ia64|mips|ppc|ppc64|s390|sh|sparc|x86|x86-fbsd|\*)" +color red "-\*" +## Masking regulators: +color brightred "^(<|<=|=|>=|>)*" +color brightwhite "^(<|<=|=|>=|>)" +## Mark lines with spaces at end of it: +color brightred ".*[[:space:]]$" +## Comments: +color brightred "#.*$" +color yellow "^#.*$" +color brightyellow "^##[[:space:]].*$" + +syntax "mask-unmask" "package_(mask|unmask)\.conf$" +## Base text: +color brightblack "^.+$" +## Package name: +color brightblue "/.*" +## Categories: +color cyan "^.*/" +## Version number: +color white "-[[:digit:]]+(\.|[[:digit:]]|-.)*($|::)" +## Repository name: +color magenta "::.*$" +## Masking regulators: +color brightred "^(<|<=|=|>=|>)*" +color brightwhite "^(<|<=|=|>=|>)" +## Mark lines with spaces at end of it: +color brightred ".*[[:space:]]$" +## Comments: +color brightred "#.*$" +color yellow "^#.*$" +color brightyellow "^##[[:space:]].*$" + +syntax "mirrors" "mirrors\.conf$" +## Base text: +color red "^.+$" +## Serwer name: +color brightwhite "^.*[[:space:]]" +## Adress +color brightblue "[[:space:]](ftp://|http://).*$" +## Mark lines with spaces at end of it: +color brightred ".*[[:space:]]$" +## Comments: +color brightred "#.*$" +color yellow "^#.*$" +color brightyellow "^##[[:space:]].*$" + +syntax "repositories" "repo" +## Base text: +color brightblack "^.+$" +## Parameters: +color magenta "=[[:space:]].+$" +color brightwhite "^.*[[:space:]]=[[:space:]]" +## Path: +color green "/.+" +color brightgreen "\$\{.*\}" +## Adress: +color brightblue "(svn\+https|svn\+http|http|rsync)://.*$" +## Mark lines with spaces at end of it: +color brightred ".*[[:space:]]$" +## Comments: +color brightred "#.*$" +color yellow "^#.*$" +color brightyellow "^##[[:space:]].*$" diff --git a/nano/passwd.nanorc b/nano/passwd.nanorc new file mode 100755 index 0000000..7e194cc --- /dev/null +++ b/nano/passwd.nanorc @@ -0,0 +1,12 @@ +### etc/passwd +syntax "passwd" "(\.|/|)passwd$" "(\.|/|)shadow$" +color white ".*$" +color blue "\:.*$" +color yellow "\:*\:" +color cyan "/.*$" +color red "/bin/false" +color brightred "root" +color brightgreen "/bin/.*sh" +color white "[0-9]" +color magenta "\:\/.*\:" + diff --git a/nano/patch.nanorc b/nano/patch.nanorc new file mode 100755 index 0000000..a788b35 --- /dev/null +++ b/nano/patch.nanorc @@ -0,0 +1,10 @@ +## Here is an example for patch files. +## +syntax "patch" "\.(patch|diff)$" +color brightgreen "^\+.*" +color green "^\+\+\+.*" +color brightblue "^ .*" +color brightred "^-.*" +color red "^---.*" +color brightyellow "^@@.*" +color magenta "^diff.*" diff --git a/nano/peg.nanorc b/nano/peg.nanorc new file mode 100755 index 0000000..3229752 --- /dev/null +++ b/nano/peg.nanorc @@ -0,0 +1,12 @@ +syntax "PEG" "\.l?peg$" + +color cyan "^[[:space:]]*[A-Za-z][A-Za-z0-9_]*[[:space:]]*<-" +color blue "\^[+-]?[0-9]+" +color red "[-+*?^/!&]|->|<-|=>" +color brightyellow "%[A-Za-z][A-Za-z0-9_]*" +color magenta "\[[^]]*\]" +color yellow ""(\\.|[^"])*"|'(\\.|[^'])*'" +color brightblack "(^|[[:space:]])\-\-.*$" +color brightwhite,cyan "TODO:?" +color ,green "[[:space:]]+$" +color ,red " + +| + +" diff --git a/nano/perl.nanorc b/nano/perl.nanorc new file mode 100755 index 0000000..7bca4cd --- /dev/null +++ b/nano/perl.nanorc @@ -0,0 +1,11 @@ +## Here is an example for Perl. +## +syntax "perl" "\.p[lm]$" +color red "\<(accept|alarm|atan2|bin(d|mode)|c(aller|h(dir|mod|op|own|root)|lose(dir)?|onnect|os|rypt)|d(bm(close|open)|efined|elete|ie|o|ump)|e(ach|of|val|x(ec|ists|it|p))|f(cntl|ileno|lock|ork))\>" "\<(get(c|login|peername|pgrp|ppid|priority|pwnam|(host|net|proto|serv)byname|pwuid|grgid|(host|net)byaddr|protobynumber|servbyport)|([gs]et|end)(pw|gr|host|net|proto|serv)ent|getsock(name|opt)|gmtime|goto|grep|hex|index|int|ioctl|join)\>" "\<(keys|kill|last|length|link|listen|local(time)?|log|lstat|m|mkdir|msg(ctl|get|snd|rcv)|next|oct|open(dir)?|ord|pack|pipe|pop|printf?|push|q|qq|qx|rand|re(ad(dir|link)?|cv|do|name|quire|set|turn|verse|winddir)|rindex|rmdir|s|scalar|seek(dir)?)\>" "\<(se(lect|mctl|mget|mop|nd|tpgrp|tpriority|tsockopt)|shift|shm(ctl|get|read|write)|shutdown|sin|sleep|socket(pair)?|sort|spli(ce|t)|sprintf|sqrt|srand|stat|study|substr|symlink|sys(call|read|tem|write)|tell(dir)?|time|tr(y)?|truncate|umask)\>" "\<(un(def|link|pack|shift)|utime|values|vec|wait(pid)?|wantarray|warn|write)\>" +color magenta "\<(continue|else|elsif|do|for|foreach|if|unless|until|while|eq|ne|lt|gt|le|ge|cmp|x|my|sub|use|package|can|isa)\>" +icolor cyan start="[$@%]" end="( |[^0-9A-Z_]|-)" +color yellow "".*"|qq\|.*\|" +color white "[sm]/.*/" +color white start="(^use| = new)" end=";" +color green "#.*" +color yellow start="<< 'STOP'" end="STOP" diff --git a/nano/perl6.nanorc b/nano/perl6.nanorc new file mode 100755 index 0000000..0660c56 --- /dev/null +++ b/nano/perl6.nanorc @@ -0,0 +1,19 @@ +## Here is an example for perl +## Hybrid perl5 / perl6 syntax highlighting +### Found in CPAN - http://cpansearch.perl.org/src/NIGE/Goo-0.09/lib/.gooskel/nanorc + +syntax "Perl6" "\.p6$" "\.pl6$" "\.pm6" +color brightblue "\<(accept|alarm|atan2|bin(d|mode)|c(aller|h(dir|mod|op|own|root)|lose(dir)?|onnect|os|rypt)|d(bm(close|open)|efined|elete|ie|o|ump)|e(ach|of|val|x(ec|ists|it|p))|f(cntl|ileno|lock|ork)|get(c|login|peername|pgrp|ppid|priority|pwnam|(host|net|proto|serv)byname|pwuid|grgid|(host|net)byaddr|protobynumber|servbyport)|([gs]et|end)(pw|gr|host|net|proto|serv)ent|getsock(name|opt)|gmtime|goto|grep|hex|index|int|ioctl|join|keys|kill|last|length|link|listen|local(time)?|log|lstat|m|mkdir|msg(ctl|get|snd|rcv)|next|oct|open(dir)?|ord|pack|pipe|pop|printf?|push|q|qq|qx|rand|re(ad(dir|link)?|cv|do|name|quire|set|turn|verse|winddir)|rindex|rmdir|s|scalar|seek|seekdir|se(lect|mctl|mget|mop|nd|tpgrp|tpriority|tsockopt)|shift|shm(ctl|get|read|write)|shutdown|sin|sleep|socket(pair)?|sort|spli(ce|t)|sprintf|sqrt|srand|stat|study|substr|symlink|sys(call|read|tem|write)|tell(dir)?|time|tr|y|truncate|umask|un(def|link|pack|shift)|utime|values|vec|wait(pid)?|wantarray|warn|write)\>" +color brightblue "\<(continue|else|elsif|do|for|foreach|if|unless|until|while|eq|ne|lt|gt|le|ge|cmp|x|my|sub|use|package|can|isa)\>" + +# Perl 6 words +color brightcyan "\<(has|is|class|role|given|when|BUILD|multi|returns|method|submethod|slurp|say|sub)\>" +color brightmagenta start="[$@%]" end="( |\\W|-)" +color brightred "".*"|qq\|.*\|" +color white "[sm]/.*/" +color brightblue start="(^use| = new)" end=";" +color brightgreen "#.*" +color brightred start="<|var|and|or|default|class|extends|true|false|global|function|new|switch|case|break|next|prev|elseif|if|else|foreach|for|as|do|while|exit|die|declare|require_once|require|include_once|include|return|echo|static|array|isset)([^A-Za-z0-9])" +#types +color brightred "([^A-Za-z0-9])|[^A-Za-z](null|int|string|float|bool|object|resource)[^A-Za-z0-9_]+[^A-Za-z]" +#strings +color brightyellow ""(\\.|[^\"])*"" +color brightyellow "'(\\.|[^\'])*'" +#Variables +color brightcyan "\$[]\[A-Za-z0-9_'\"]*" +#comments +color green "//.*" +color green "#.*" +color green start="/\*" end="\*/" diff --git a/nano/php2.nanorc b/nano/php2.nanorc new file mode 100755 index 0000000..3aafe25 --- /dev/null +++ b/nano/php2.nanorc @@ -0,0 +1,12 @@ + +# PHP Syntax Highlighting +syntax "php2" "\.php[2345s~]?$" +color brightblue "(.*)\(" +color blue "\$[a-zA-Z_0-9$]*|[=!<>]" +color green "(var|class|function|echo|case|break|default|exit|switch|if|else|elseif|@|while)\s" +color green "[.,{}();]" +color red "('.*')|(\".*\")" +color brightyellow "(#.*|//.*)$" +color brightyellow start="/\*" end="\*/" +color brightblue "(<\?(php)?|\?>)" +color white start="\?>" end="<\?(php)?" diff --git a/nano/pkg-config.nanorc b/nano/pkg-config.nanorc new file mode 100755 index 0000000..4c83ce8 --- /dev/null +++ b/nano/pkg-config.nanorc @@ -0,0 +1,8 @@ +syntax "PC" "\.pc$" + +color cyan "^(Name|Description|URL|Version|Conflicts|Cflags):" +color cyan "^(Requires|Libs)(\.private)?:" +color red "=" +color brightyellow "\$\{[A-Za-z_][A-Za-z0-9_]*\}" +color ,green "[[:space:]]+$" +color ,red " + +| + +" diff --git a/nano/pkgbuild.nanorc b/nano/pkgbuild.nanorc new file mode 100755 index 0000000..aaea48e --- /dev/null +++ b/nano/pkgbuild.nanorc @@ -0,0 +1,23 @@ +## Arch PKGBUILD files +## +syntax "pkgbuild" "^.*PKGBUILD$" +color green start="^." end="$" +color cyan "^.*(pkgbase|pkgname|pkgver|pkgrel|pkgdesc|arch|url|license).*=.*$" +color brightcyan "\<(pkgbase|pkgname|pkgver|pkgrel|pkgdesc|arch|url|license)\>" +color brightcyan "(\$|\$\{|\$\()(pkgbase|pkgname|pkgver|pkgrel|pkgdesc|arch|url|license)(|\}|\))" +color cyan "^.*(depends|makedepends|optdepends|conflicts|provides|replaces).*=.*$" +color brightcyan "\<(depends|makedepends|optdepends|conflicts|provides|replaces)\>" +color brightcyan "(\$|\$\{|\$\()(depends|makedepends|optdepends|conflicts|provides|replaces)(|\}|\))" +color cyan "^.*(groups|backup|noextract|options).*=.*$" +color brightcyan "\<(groups|backup|noextract|options)\>" +color brightcyan "(\$|\$\{|\$\()(groups|backup|noextract|options)(|\}|\))" +color cyan "^.*(install|source|md5sums|sha1sums|sha256sums|sha384sums|sha512sums).*=.*$" +color brightcyan "\<(install|source|md5sums|sha1sums|sha256sums|sha384sums|sha512sums)\>" +color brightcyan "(\$|\$\{|\$\()(install|source|md5sums|sha1sums|sha256sums|sha384sums|sha512sums)(|\}|\))" +color brightcyan "\<(startdir|srcdir|pkgdir)\>" +color cyan "\.install" +color brightwhite "=" "'" "\(" "\)" "\"" "#.*$" "\," "\{" "\}" +color brightred "build\(\)" +color brightred "package_.*.*$" +color brightred "\<(configure|make|cmake|scons)\>" +color red "\<(DESTDIR|PREFIX|prefix|sysconfdir|datadir|libdir|includedir|mandir|infodir)\>" diff --git a/nano/po.nanorc b/nano/po.nanorc new file mode 100755 index 0000000..97e9fd2 --- /dev/null +++ b/nano/po.nanorc @@ -0,0 +1,19 @@ +## *.po file syntax +## +syntax "po" "\.po$" "\.pot$" +color brightblue "\<(msgid|msgstr)\>" +color brightred "\/" +color green "#.*$" +color red "\" +color yellow "\" +color yellow "\"" +color red "\"\"" +color brightyellow "\"\\n\"" +color brightmagenta "\<(Project\-Id\-Version|Report\-Msgid\-Bugs\-To|Last\-Translator|Language\-Team|charset)\>" +color cyan "\<(POT\-Creation\-Date|PO\-Revision\-Date|MIME\-Version|Content\-Type|Content\-Transfer\-Encoding)\>" +color yellow "\<(Copyright|(C))\>" +color yellow "[0-9]" +color brightyellow "\<(UTF|ISO|Windows|Mac|IBM)\>\-[0-9]" +color red "#~.*$" + + diff --git a/nano/postgresql.nanorc b/nano/postgresql.nanorc new file mode 100755 index 0000000..7647965 --- /dev/null +++ b/nano/postgresql.nanorc @@ -0,0 +1,5 @@ +syntax "postgreSQL" "\.sql$" +icolor red "\<(A(LL|NALY(S|Z)E|ND|NY|RRAY|S|SC|SYMMETRIC|UTHORIZATION)|B(ETWEEN|INARY|OTH|Y)|C(ASE|AST|HECK|OLLATE|OLUMN|ONSTRAINT|REATE|ROSS|URRENT_(DATE|ROLE|TIME|TIMESTAMP|USER))|D(EFAULT|EFERRABLE|ESC|ISTINCT|O|ROP)|E(LSE|ND|XCEPT)|F(ALSE|OR(EIGN)?|REEZE|ROM|ULL)|GRANT|GROUP|HAVING|I(LIKE|N(ITIALLY|NER|TERSECT|TO)?|S|SNULL)|JOIN|L(EADING|EFT|IKE|IMIT|OCALTIME(STAMP)?)|N(ATURAL|EW|OT(NULL)?|ULL)|O(FF(SET)?|LD|N|NLY|R|RDER|UTER|VERLAPS)|PLACING|PRIMARY|REFERENCES|RIGHT|S(ELECT|ESSION_USER|IMILAR|OME|YMMETRIC)|T(ABLE|HEN|O|RAILING|RUE)|UNION|UNIQUE|USER|USING|VE(IW|RBOSE)|WHEN|WHERE|)\>" +color magenta "(\{|\}|\(|\)|\;|\]|\[|`|\\|\$|<|>|!|=|&|\|)" +color yellow "'[^']*'" +color green "--.*$" diff --git a/nano/pov.nanorc b/nano/pov.nanorc new file mode 100755 index 0000000..298b201 --- /dev/null +++ b/nano/pov.nanorc @@ -0,0 +1,15 @@ +## Here is an example for POV-Ray. +## +syntax "pov" "\.(pov|POV|povray|POVRAY)$" +color brightcyan "^[[:space:]]*#[[:space:]]*(declare)" +color brightyellow "\<(sphere|cylinder|translate|matrix|rotate|scale)\>" +color brightyellow "\<(orthographic|location|up|right|direction|clipped_by)\>" +color brightyellow "\<(fog_type|fog_offset|fog_alt|rgb|distance|transform)\>" +color brightred "^\<(texture)\>" +color brightred "\<(light_source|background)\>" +color brightred "\<(fog|object|camera)\>" +color green "(\{|\}|\(|\)|\;|\]|\[|`|\\|\$|<|>|!|=|&|\|)" +color brightmagenta "\<(union|group|subgroup)\>" +## Comment highlighting +color brightblue "//.*" +color brightblue start="/\*" end="\*/" diff --git a/nano/powershell.nanorc b/nano/powershell.nanorc new file mode 100755 index 0000000..db459ee --- /dev/null +++ b/nano/powershell.nanorc @@ -0,0 +1,34 @@ +## Nano syntax highlighting file for PowerShell +## Written by Rashil Gandhi https://github.com/rashil2000 + +syntax "PowerShell" "\.[pP][sS][1]$" "\.[pP][sS][mM][1]$" + +## Commands +icolor cyan "\<(Add-AppPackage|Add-AppPackageVolume|Add-AppProvisionedPackage|Add-ProvisionedAppPackage|Add-ProvisionedAppxPackage|Add-ProvisioningPackage|Add-TrustedProvisioningCertificate|Apply-WindowsUnattend|Disable-PhysicalDiskIndication|Disable-StorageDiagnosticLog|Dismount-AppPackageVolume|Enable-PhysicalDiskIndication|Enable-StorageDiagnosticLog|Flush-Volume|Get-AppPackage|Get-AppPackageDefaultVolume|Get-AppPackageLastError|Get-AppPackageLog|Get-AppPackageManifest|Get-AppPackageVolume|Get-AppProvisionedPackage|Get-DiskSNV|Get-PhysicalDiskSNV|Get-ProvisionedAppPackage|Get-ProvisionedAppxPackage|Get-StorageEnclosureSNV|Initialize-Volume|Mount-AppPackageVolume|Move-AppPackage|Move-SmbClient|Optimize-AppProvisionedPackages|Optimize-ProvisionedAppPackages|Optimize-ProvisionedAppxPackages|Remove-AppPackage|Remove-AppPackageVolume|Remove-AppProvisionedPackage|Remove-EtwTraceSession|Remove-ProvisionedAppPackage|Remove-ProvisionedAppxPackage|Remove-ProvisioningPackage|Remove-TrustedProvisioningCertificate|Set-AppPackageDefaultVolume|Set-AppPackageProvisionedDataFile|Set-AutologgerConfig|Set-EtwTraceSession|Set-ProvisionedAppPackageDataFile|Set-ProvisionedAppXDataFile|Write-FileSystemCache|A:|Add-BitLockerKeyProtector|Add-DnsClientNrptRule|Add-DtcClusterTMMapping|Add-EtwTraceProvider|Add-InitiatorIdToMaskingSet|Add-MpPreference|Add-MpPreference|Add-NetEventNetworkAdapter|Add-NetEventPacketCaptureProvider|Add-NetEventProvider|Add-NetEventVFPProvider|Add-NetEventVmNetworkAdapter|Add-NetEventVmSwitch|Add-NetEventVmSwitchProvider|Add-NetEventWFPCaptureProvider|Add-NetIPHttpsCertBinding|Add-NetLbfoTeamMember|Add-NetLbfoTeamNic|Add-NetNatExternalAddress|Add-NetNatStaticMapping|Add-NetSwitchTeamMember|Add-OdbcDsn|Add-PartitionAccessPath|Add-PhysicalDisk|Add-PoshGitToProfile|Add-Printer|Add-PrinterDriver|Add-PrinterPort|Add-SshKey|Add-StorageFaultDomain|Add-TargetPortToMaskingSet|Add-VirtualDiskToMaskingSet|Add-VpnConnection|Add-VpnConnectionRoute|Add-VpnConnectionTriggerApplication|Add-VpnConnectionTriggerDnsConfiguration|Add-VpnConnectionTriggerTrustedNetwork|AfterAll|AfterEach|Assert-MockCalled|Assert-VerifiableMocks|B:|Backup-BitLockerKeyProtector|BackupToAAD-BitLockerKeyProtector|BeforeAll|BeforeEach|Block-FileShareAccess|Block-SmbShareAccess|C:|cd..|cd\|Clear-BitLockerAutoUnlock|Clear-Disk|Clear-DnsClientCache|Clear-FileStorageTier|Clear-Host|Clear-PcsvDeviceLog|Clear-StorageBusDisk|Clear-StorageDiagnosticInfo|Close-SmbOpenFile|Close-SmbSession|Compress-Archive|Configuration|Connect-IscsiTarget|Connect-VirtualDisk|Context|ConvertFrom-SddlString|Copy-NetFirewallRule|Copy-NetIPsecMainModeCryptoSet|Copy-NetIPsecMainModeRule|Copy-NetIPsecPhase1AuthSet|Copy-NetIPsecPhase2AuthSet|Copy-NetIPsecQuickModeCryptoSet|Copy-NetIPsecRule|D:|Debug-FileShare|Debug-MMAppPrelaunch|Debug-StorageSubSystem|Debug-Volume|Describe|Disable-BitLocker|Disable-BitLockerAutoUnlock|Disable-DAManualEntryPointSelection|Disable-DeliveryOptimizationVerboseLogs|Disable-DscDebug|Disable-MMAgent|Disable-NetAdapter|Disable-NetAdapterBinding|Disable-NetAdapterChecksumOffload|Disable-NetAdapterEncapsulatedPacketTaskOffload|Disable-NetAdapterIPsecOffload|Disable-NetAdapterLso|Disable-NetAdapterPacketDirect|Disable-NetAdapterPowerManagement|Disable-NetAdapterQos|Disable-NetAdapterRdma|Disable-NetAdapterRsc|Disable-NetAdapterRss|Disable-NetAdapterSriov|Disable-NetAdapterUso|Disable-NetAdapterVmq|Disable-NetDnsTransitionConfiguration|Disable-NetFirewallRule|Disable-NetIPHttpsProfile|Disable-NetIPsecMainModeRule|Disable-NetIPsecRule|Disable-NetNatTransitionConfiguration|Disable-NetworkSwitchEthernetPort|Disable-NetworkSwitchFeature|Disable-NetworkSwitchVlan|Disable-OdbcPerfCounter|Disable-PhysicalDiskIdentification|Disable-PnpDevice|Disable-PSTrace|Disable-PSWSManCombinedTrace|Disable-ScheduledTask|Disable-SmbDelegation|Disable-StorageBusCache|Disable-StorageBusDisk|Disable-StorageEnclosureIdentification|Disable-StorageEnclosurePower|Disable-StorageHighAvailability|Disable-StorageMaintenanceMode|Disable-WdacBidTrace|Disable-WSManTrace|Disconnect-IscsiTarget|Disconnect-VirtualDisk|Dismount-DiskImage|E:|Enable-BitLocker|Enable-BitLockerAutoUnlock|Enable-DAManualEntryPointSelection|Enable-DeliveryOptimizationVerboseLogs|Enable-DscDebug|Enable-GitColors|Enable-MMAgent|Enable-NetAdapter|Enable-NetAdapterBinding|Enable-NetAdapterChecksumOffload|Enable-NetAdapterEncapsulatedPacketTaskOffload|Enable-NetAdapterIPsecOffload|Enable-NetAdapterLso|Enable-NetAdapterPacketDirect|Enable-NetAdapterPowerManagement|Enable-NetAdapterQos|Enable-NetAdapterRdma|Enable-NetAdapterRsc|Enable-NetAdapterRss|Enable-NetAdapterSriov|Enable-NetAdapterUso|Enable-NetAdapterVmq|Enable-NetDnsTransitionConfiguration|Enable-NetFirewallRule|Enable-NetIPHttpsProfile|Enable-NetIPsecMainModeRule|Enable-NetIPsecRule|Enable-NetNatTransitionConfiguration|Enable-NetworkSwitchEthernetPort|Enable-NetworkSwitchFeature|Enable-NetworkSwitchVlan|Enable-OdbcPerfCounter|Enable-PhysicalDiskIdentification|Enable-PnpDevice|Enable-PSTrace|Enable-PSWSManCombinedTrace|Enable-ScheduledTask|Enable-SmbDelegation|Enable-StorageBusCache|Enable-StorageBusDisk|Enable-StorageEnclosureIdentification|Enable-StorageEnclosurePower|Enable-StorageHighAvailability|Enable-StorageMaintenanceMode|Enable-WdacBidTrace|Enable-WSManTrace|Expand-Archive|Expand-GitCommand|Export-ODataEndpointProxy|Export-ScheduledTask|F:|Find-Command|Find-Command|Find-Command|Find-DSCResource|Find-DSCResource|Find-DscResource|Find-Module|Find-Module|Find-Module|Find-NetIPsecRule|Find-NetRoute|Find-RoleCapability|Find-RoleCapability|Find-RoleCapability|Find-Script|Find-Script|Find-Script|Flush-EtwTraceSession|Format-Hex|Format-Volume|G:|Get-AliasPattern|Get-AppBackgroundTask|Get-AppxLastError|Get-AppxLog|Get-AutologgerConfig|Get-BitLockerVolume|Get-ClusteredScheduledTask|Get-ComputerName|Get-CredsFromCredentialProvider|Get-CredsFromCredentialProvider|Get-DAClientExperienceConfiguration|Get-DAConnectionStatus|Get-DAEntryPointTableItem|Get-DedupProperties|Get-DeliveryOptimizationPerfSnap|Get-DeliveryOptimizationPerfSnapThisMonth|Get-DeliveryOptimizationStatus|Get-Disk|Get-DiskImage|Get-DiskStorageNodeView|Get-DnsClient|Get-DnsClientCache|Get-DnsClientGlobalSetting|Get-DnsClientNrptGlobal|Get-DnsClientNrptPolicy|Get-DnsClientNrptRule|Get-DnsClientServerAddress|Get-DOConfig|Get-DODownloadMode|Get-DOPercentageMaxBackgroundBandwidth|Get-DOPercentageMaxForegroundBandwidth|Get-DscConfiguration|Get-DscConfigurationStatus|Get-DscLocalConfigurationManager|Get-DscResource|Get-Dtc|Get-DtcAdvancedHostSetting|Get-DtcAdvancedSetting|Get-DtcClusterDefault|Get-DtcClusterTMMapping|Get-DtcDefault|Get-DtcLog|Get-DtcNetworkSetting|Get-DtcTransaction|Get-DtcTransactionsStatistics|Get-DtcTransactionsTraceSession|Get-DtcTransactionsTraceSetting|Get-EtwTraceProvider|Get-EtwTraceSession|Get-FileHash|Get-FileIntegrity|Get-FileShare|Get-FileShareAccessControlEntry|Get-FileStorageTier|Get-FormattedRootLocation|Get-FullPath|Get-GitBranch|Get-GitDirectory|Get-GitStatus|Get-HnsEndpoint|Get-HnsNamespace|Get-HnsNetwork|Get-HnsPolicyList|Get-InitiatorId|Get-InitiatorPort|Get-InstalledModule|Get-InstalledModule|Get-InstalledModule|Get-InstalledScript|Get-InstalledScript|Get-InstalledScript|Get-IscsiConnection|Get-IscsiSession|Get-IscsiTarget|Get-IscsiTargetPortal|Get-IseSnippet|Get-LogProperties|Get-MaskingSet|Get-MMAgent|Get-MockDynamicParameters|Get-MpComputerStatus|Get-MpComputerStatus|Get-MpPreference|Get-MpPreference|Get-MpThreat|Get-MpThreat|Get-MpThreatCatalog|Get-MpThreatCatalog|Get-MpThreatDetection|Get-MpThreatDetection|Get-NCSIPolicyConfiguration|Get-Net6to4Configuration|Get-NetAdapter|Get-NetAdapterAdvancedProperty|Get-NetAdapterBinding|Get-NetAdapterChecksumOffload|Get-NetAdapterEncapsulatedPacketTaskOffload|Get-NetAdapterHardwareInfo|Get-NetAdapterIPsecOffload|Get-NetAdapterLso|Get-NetAdapterPacketDirect|Get-NetAdapterPowerManagement|Get-NetAdapterQos|Get-NetAdapterRdma|Get-NetAdapterRsc|Get-NetAdapterRss|Get-NetAdapterSriov|Get-NetAdapterSriovVf|Get-NetAdapterStatistics|Get-NetAdapterUso|Get-NetAdapterVmq|Get-NetAdapterVMQQueue|Get-NetAdapterVPort|Get-NetCompartment|Get-NetConnectionProfile|Get-NetDnsTransitionConfiguration|Get-NetDnsTransitionMonitoring|Get-NetEventNetworkAdapter|Get-NetEventPacketCaptureProvider|Get-NetEventProvider|Get-NetEventSession|Get-NetEventVFPProvider|Get-NetEventVmNetworkAdapter|Get-NetEventVmSwitch|Get-NetEventVmSwitchProvider|Get-NetEventWFPCaptureProvider|Get-NetFirewallAddressFilter|Get-NetFirewallApplicationFilter|Get-NetFirewallInterfaceFilter|Get-NetFirewallInterfaceTypeFilter|Get-NetFirewallPortFilter|Get-NetFirewallProfile|Get-NetFirewallRule|Get-NetFirewallSecurityFilter|Get-NetFirewallServiceFilter|Get-NetFirewallSetting|Get-NetIPAddress|Get-NetIPConfiguration|Get-NetIPHttpsConfiguration|Get-NetIPHttpsState|Get-NetIPInterface|Get-NetIPsecDospSetting|Get-NetIPsecMainModeCryptoSet|Get-NetIPsecMainModeRule|Get-NetIPsecMainModeSA|Get-NetIPsecPhase1AuthSet|Get-NetIPsecPhase2AuthSet|Get-NetIPsecQuickModeCryptoSet|Get-NetIPsecQuickModeSA|Get-NetIPsecRule|Get-NetIPv4Protocol|Get-NetIPv6Protocol|Get-NetIsatapConfiguration|Get-NetLbfoTeam|Get-NetLbfoTeamMember|Get-NetLbfoTeamNic|Get-NetNat|Get-NetNatExternalAddress|Get-NetNatGlobal|Get-NetNatSession|Get-NetNatStaticMapping|Get-NetNatTransitionConfiguration|Get-NetNatTransitionMonitoring|Get-NetNeighbor|Get-NetOffloadGlobalSetting|Get-NetPrefixPolicy|Get-NetQosPolicy|Get-NetRoute|Get-NetSwitchTeam|Get-NetSwitchTeamMember|Get-NetTCPConnection|Get-NetTCPSetting|Get-NetTeredoConfiguration|Get-NetTeredoState|Get-NetTransportFilter|Get-NetUDPEndpoint|Get-NetUDPSetting|Get-NetView|Get-NetworkSwitchEthernetPort|Get-NetworkSwitchFeature|Get-NetworkSwitchGlobalData|Get-NetworkSwitchVlan|Get-OdbcDriver|Get-OdbcDsn|Get-OdbcPerfCounter|Get-OffloadDataTransferSetting|Get-OperationValidation|Get-Partition|Get-PartitionSupportedSize|Get-PcsvDevice|Get-PcsvDeviceLog|Get-PhysicalDisk|Get-PhysicalDiskStorageNodeView|Get-PhysicalExtent|Get-PhysicalExtentAssociation|Get-PnpDevice|Get-PnpDeviceProperty|Get-PrintConfiguration|Get-Printer|Get-PrinterDriver|Get-PrinterPort|Get-PrinterProperty|Get-PrintJob|Get-PromptPath|Get-PSRepository|Get-PSRepository|Get-PSRepository|Get-ResiliencySetting|Get-ScheduledTask|Get-ScheduledTaskInfo|Get-ShortPath|Get-SmbBandWidthLimit|Get-SmbClientConfiguration|Get-SmbClientNetworkInterface|Get-SmbConnection|Get-SmbDelegation|Get-SmbGlobalMapping|Get-SmbMapping|Get-SmbMultichannelConnection|Get-SmbMultichannelConstraint|Get-SmbOpenFile|Get-SmbServerCertificateMapping|Get-SmbServerConfiguration|Get-SmbServerNetworkInterface|Get-SmbSession|Get-SmbShare|Get-SmbShareAccess|Get-SmbWitnessClient|Get-SshAgent|Get-SshPath|Get-StartApps|Get-StorageAdvancedProperty|Get-StorageBusBinding|Get-StorageBusDisk|Get-StorageChassis|Get-StorageDiagnosticInfo|Get-StorageEnclosure|Get-StorageEnclosureStorageNodeView|Get-StorageEnclosureVendorData|Get-StorageExtendedStatus|Get-StorageFaultDomain|Get-StorageFileServer|Get-StorageFirmwareInformation|Get-StorageHealthAction|Get-StorageHealthReport|Get-StorageHealthSetting|Get-StorageHistory|Get-StorageJob|Get-StorageNode|Get-StoragePool|Get-StorageProvider|Get-StorageRack|Get-StorageReliabilityCounter|Get-StorageScaleUnit|Get-StorageSetting|Get-StorageSite|Get-StorageSubSystem|Get-StorageTier|Get-StorageTierSupportedSize|Get-SupportedClusterSizes|Get-SupportedFileSystems|Get-TargetPort|Get-TargetPortal|Get-TestDriveItem|Get-Theme|Get-ThemesLocation|Get-VcsInfo|Get-VCSStatus|Get-Verb|Get-VirtualDisk|Get-VirtualDiskSupportedSize|Get-VirtualEnvName|Get-Volume|Get-VolumeCorruptionCount|Get-VolumeScrubPolicy|Get-VpnConnection|Get-VpnConnectionTrigger|Get-WdacBidTrace|Get-WindowsUpdateLog|Get-WUAVersion|Get-WUIsPendingReboot|Get-WULastInstallationDate|Get-WULastScanSuccessDate|Grant-FileShareAccess|Grant-SmbShareAccess|H:|help|Hide-VirtualDisk|I:|Import-IseSnippet|Import-PowerShellDataFile|ImportSystemModules|In|Initialize-Disk|InModuleScope|Install-Dtc|Install-Module|Install-Module|Install-Module|Install-Script|Install-Script|Install-Script|Install-WUUpdates|Invoke-AsWorkflow|Invoke-Mock|Invoke-NullCoalescing|Invoke-OperationValidation|Invoke-Pester|It|J:|K:|L:|Lock-BitLocker|M:|mkdir|Mock|more|Mount-DiskImage|Move-SmbWitnessClient|N:|New-AutologgerConfig|New-DAEntryPointTableItem|New-DscChecksum|New-EapConfiguration|New-EtwTraceSession|New-FileShare|New-Fixture|New-Guid|New-IscsiTargetPortal|New-IseSnippet|New-MaskingSet|New-NetAdapterAdvancedProperty|New-NetEventSession|New-NetFirewallRule|New-NetIPAddress|New-NetIPHttpsConfiguration|New-NetIPsecDospSetting|New-NetIPsecMainModeCryptoSet|New-NetIPsecMainModeRule|New-NetIPsecPhase1AuthSet|New-NetIPsecPhase2AuthSet|New-NetIPsecQuickModeCryptoSet|New-NetIPsecRule|New-NetLbfoTeam|New-NetNat|New-NetNatTransitionConfiguration|New-NetNeighbor|New-NetQosPolicy|New-NetRoute|New-NetSwitchTeam|New-NetTransportFilter|New-NetworkSwitchVlan|New-Partition|New-PesterOption|New-PSWorkflowSession|New-ScheduledTask|New-ScheduledTaskAction|New-ScheduledTaskPrincipal|New-ScheduledTaskSettingsSet|New-ScheduledTaskTrigger|New-ScriptFileInfo|New-ScriptFileInfo|New-ScriptFileInfo|New-SmbGlobalMapping|New-SmbMapping|New-SmbMultichannelConstraint|New-SmbServerCertificateMapping|New-SmbShare|New-StorageBusBinding|New-StorageBusCacheStore|New-StorageFileServer|New-StoragePool|New-StorageSubsystemVirtualDisk|New-StorageTier|New-TemporaryFile|New-VirtualDisk|New-VirtualDiskClone|New-VirtualDiskSnapshot|New-Volume|New-VpnServerAddress|O:|Open-NetGPO|Optimize-StoragePool|Optimize-Volume|oss|Out-Default|P:|Pause|prompt|PSConsoleHostReadLine|Publish-Module|Publish-Module|Publish-Module|Publish-Script|Publish-Script|Publish-Script|Q:|R:|Read-PrinterNfcTag|Register-ClusteredScheduledTask|Register-DnsClient|Register-IscsiSession|Register-PSRepository|Register-PSRepository|Register-PSRepository|Register-ScheduledTask|Register-StorageSubsystem|Remove-AutologgerConfig|Remove-BitLockerKeyProtector|Remove-DAEntryPointTableItem|Remove-DnsClientNrptRule|Remove-DscConfigurationDocument|Remove-DtcClusterTMMapping|Remove-EtwTraceProvider|Remove-FileShare|Remove-HnsEndpoint|Remove-HnsNamespace|Remove-HnsNetwork|Remove-HnsPolicyList|Remove-InitiatorId|Remove-InitiatorIdFromMaskingSet|Remove-IscsiTargetPortal|Remove-MaskingSet|Remove-MpPreference|Remove-MpPreference|Remove-MpThreat|Remove-MpThreat|Remove-NetAdapterAdvancedProperty|Remove-NetEventNetworkAdapter|Remove-NetEventPacketCaptureProvider|Remove-NetEventProvider|Remove-NetEventSession|Remove-NetEventVFPProvider|Remove-NetEventVmNetworkAdapter|Remove-NetEventVmSwitch|Remove-NetEventVmSwitchProvider|Remove-NetEventWFPCaptureProvider|Remove-NetFirewallRule|Remove-NetIPAddress|Remove-NetIPHttpsCertBinding|Remove-NetIPHttpsConfiguration|Remove-NetIPsecDospSetting|Remove-NetIPsecMainModeCryptoSet|Remove-NetIPsecMainModeRule|Remove-NetIPsecMainModeSA|Remove-NetIPsecPhase1AuthSet|Remove-NetIPsecPhase2AuthSet|Remove-NetIPsecQuickModeCryptoSet|Remove-NetIPsecQuickModeSA|Remove-NetIPsecRule|Remove-NetLbfoTeam|Remove-NetLbfoTeamMember|Remove-NetLbfoTeamNic|Remove-NetNat|Remove-NetNatExternalAddress|Remove-NetNatStaticMapping|Remove-NetNatTransitionConfiguration|Remove-NetNeighbor|Remove-NetQosPolicy|Remove-NetRoute|Remove-NetSwitchTeam|Remove-NetSwitchTeamMember|Remove-NetTransportFilter|Remove-NetworkSwitchEthernetPortIPAddress|Remove-NetworkSwitchVlan|Remove-OdbcDsn|Remove-Partition|Remove-PartitionAccessPath|Remove-PhysicalDisk|Remove-Printer|Remove-PrinterDriver|Remove-PrinterPort|Remove-PrintJob|Remove-SmbBandwidthLimit|Remove-SmbGlobalMapping|Remove-SmbMapping|Remove-SmbMultichannelConstraint|Remove-SmbServerCertificateMapping|Remove-SmbShare|Remove-StorageBusBinding|Remove-StorageFaultDomain|Remove-StorageFileServer|Remove-StorageHealthIntent|Remove-StorageHealthSetting|Remove-StoragePool|Remove-StorageTier|Remove-TargetPortFromMaskingSet|Remove-VirtualDisk|Remove-VirtualDiskFromMaskingSet|Remove-VpnConnection|Remove-VpnConnectionRoute|Remove-VpnConnectionTriggerApplication|Remove-VpnConnectionTriggerDnsConfiguration|Remove-VpnConnectionTriggerTrustedNetwork|Rename-DAEntryPointTableItem|Rename-MaskingSet|Rename-NetAdapter|Rename-NetFirewallRule|Rename-NetIPHttpsConfiguration|Rename-NetIPsecMainModeCryptoSet|Rename-NetIPsecMainModeRule|Rename-NetIPsecPhase1AuthSet|Rename-NetIPsecPhase2AuthSet|Rename-NetIPsecQuickModeCryptoSet|Rename-NetIPsecRule|Rename-NetLbfoTeam|Rename-NetSwitchTeam|Rename-Printer|Repair-FileIntegrity|Repair-VirtualDisk|Repair-Volume|Reset-DAClientExperienceConfiguration|Reset-DAEntryPointTableItem|Reset-DtcLog|Reset-NCSIPolicyConfiguration|Reset-Net6to4Configuration|Reset-NetAdapterAdvancedProperty|Reset-NetDnsTransitionConfiguration|Reset-NetIPHttpsConfiguration|Reset-NetIsatapConfiguration|Reset-NetTeredoConfiguration|Reset-PhysicalDisk|Reset-StorageReliabilityCounter|Resize-Partition|Resize-StorageTier|Resize-VirtualDisk|Restart-NetAdapter|Restart-PcsvDevice|Restart-PrintJob|Restore-DscConfiguration|Restore-NetworkSwitchConfiguration|Resume-BitLocker|Resume-PrintJob|Resume-StorageBusDisk|Revoke-FileShareAccess|Revoke-SmbShareAccess|S:|SafeGetCommand|Save-EtwTraceSession|Save-Module|Save-Module|Save-Module|Save-NetGPO|Save-NetworkSwitchConfiguration|Save-Script|Save-Script|Save-Script|Send-EtwTraceSession|Set-ClusteredScheduledTask|Set-CursorForRightBlockWrite|Set-CursorUp|Set-DAClientExperienceConfiguration|Set-DAEntryPointTableItem|Set-Disk|Set-DnsClient|Set-DnsClientGlobalSetting|Set-DnsClientNrptGlobal|Set-DnsClientNrptRule|Set-DnsClientServerAddress|Set-DtcAdvancedHostSetting|Set-DtcAdvancedSetting|Set-DtcClusterDefault|Set-DtcClusterTMMapping|Set-DtcDefault|Set-DtcLog|Set-DtcNetworkSetting|Set-DtcTransaction|Set-DtcTransactionsTraceSession|Set-DtcTransactionsTraceSetting|Set-DynamicParameterVariables|Set-EtwTraceProvider|Set-FileIntegrity|Set-FileShare|Set-FileStorageTier|Set-InitiatorPort|Set-IscsiChapSecret|Set-LogProperties|Set-MMAgent|Set-MpPreference|Set-MpPreference|Set-NCSIPolicyConfiguration|Set-Net6to4Configuration|Set-NetAdapter|Set-NetAdapterAdvancedProperty|Set-NetAdapterBinding|Set-NetAdapterChecksumOffload|Set-NetAdapterEncapsulatedPacketTaskOffload|Set-NetAdapterIPsecOffload|Set-NetAdapterLso|Set-NetAdapterPacketDirect|Set-NetAdapterPowerManagement|Set-NetAdapterQos|Set-NetAdapterRdma|Set-NetAdapterRsc|Set-NetAdapterRss|Set-NetAdapterSriov|Set-NetAdapterUso|Set-NetAdapterVmq|Set-NetConnectionProfile|Set-NetDnsTransitionConfiguration|Set-NetEventPacketCaptureProvider|Set-NetEventProvider|Set-NetEventSession|Set-NetEventVFPProvider|Set-NetEventVmSwitchProvider|Set-NetEventWFPCaptureProvider|Set-NetFirewallAddressFilter|Set-NetFirewallApplicationFilter|Set-NetFirewallInterfaceFilter|Set-NetFirewallInterfaceTypeFilter|Set-NetFirewallPortFilter|Set-NetFirewallProfile|Set-NetFirewallRule|Set-NetFirewallSecurityFilter|Set-NetFirewallServiceFilter|Set-NetFirewallSetting|Set-NetIPAddress|Set-NetIPHttpsConfiguration|Set-NetIPInterface|Set-NetIPsecDospSetting|Set-NetIPsecMainModeCryptoSet|Set-NetIPsecMainModeRule|Set-NetIPsecPhase1AuthSet|Set-NetIPsecPhase2AuthSet|Set-NetIPsecQuickModeCryptoSet|Set-NetIPsecRule|Set-NetIPv4Protocol|Set-NetIPv6Protocol|Set-NetIsatapConfiguration|Set-NetLbfoTeam|Set-NetLbfoTeamMember|Set-NetLbfoTeamNic|Set-NetNat|Set-NetNatGlobal|Set-NetNatTransitionConfiguration|Set-NetNeighbor|Set-NetOffloadGlobalSetting|Set-NetQosPolicy|Set-NetRoute|Set-NetTCPSetting|Set-NetTeredoConfiguration|Set-NetUDPSetting|Set-NetworkSwitchEthernetPortIPAddress|Set-NetworkSwitchPortMode|Set-NetworkSwitchPortProperty|Set-NetworkSwitchVlanProperty|Set-Newline|Set-OdbcDriver|Set-OdbcDsn|Set-Partition|Set-PcsvDeviceBootConfiguration|Set-PcsvDeviceNetworkConfiguration|Set-PcsvDeviceUserPassword|Set-PhysicalDisk|Set-PrintConfiguration|Set-Printer|Set-PrinterProperty|Set-Prompt|Set-PSRepository|Set-PSRepository|Set-PSRepository|Set-ResiliencySetting|Set-ScheduledTask|Set-SmbBandwidthLimit|Set-SmbClientConfiguration|Set-SmbPathAcl|Set-SmbServerConfiguration|Set-SmbShare|Set-StorageBusProfile|Set-StorageFileServer|Set-StorageHealthSetting|Set-StoragePool|Set-StorageProvider|Set-StorageSetting|Set-StorageSubSystem|Set-StorageTier|Set-TestInconclusive|Set-Theme|Setup|Set-VirtualDisk|Set-Volume|Set-VolumeScrubPolicy|Set-VpnConnection|Set-VpnConnectionIPsecConfiguration|Set-VpnConnectionProxy|Set-VpnConnectionTriggerDnsConfiguration|Set-VpnConnectionTriggerTrustedNetwork|Should|Show-Colors|Show-NetFirewallRule|Show-NetIPsecRule|Show-StorageHistory|Show-ThemeColors|Show-ThemeSymbols|Show-VirtualDisk|Start-AppBackgroundTask|Start-AutologgerConfig|Start-Dtc|Start-DtcTransactionsTraceSession|Start-EtwTraceSession|Start-MpScan|Start-MpScan|Start-MpWDOScan|Start-MpWDOScan|Start-NetEventSession|Start-PcsvDevice|Start-ScheduledTask|Start-SshAgent|Start-StorageDiagnosticLog|Start-Trace|Start-WUScan|Stop-DscConfiguration|Stop-Dtc|Stop-DtcTransactionsTraceSession|Stop-EtwTraceSession|Stop-NetEventSession|Stop-PcsvDevice|Stop-ScheduledTask|Stop-SshAgent|Stop-StorageDiagnosticLog|Stop-StorageJob|Stop-Trace|Suspend-BitLocker|Suspend-PrintJob|Suspend-StorageBusDisk|Sync-NetIPsecRule|T:|TabExpansion|TabExpansion2|Test-Administrator|Test-Dtc|Test-NetConnection|Test-NotDefaultUser|Test-ScriptFileInfo|Test-ScriptFileInfo|Test-ScriptFileInfo|Test-VirtualEnv|tgit|U:|Unblock-FileShareAccess|Unblock-SmbShareAccess|Uninstall-Dtc|Uninstall-Module|Uninstall-Module|Uninstall-Module|Uninstall-Script|Uninstall-Script|Uninstall-Script|Unlock-BitLocker|Unregister-AppBackgroundTask|Unregister-ClusteredScheduledTask|Unregister-IscsiSession|Unregister-PSRepository|Unregister-PSRepository|Unregister-PSRepository|Unregister-ScheduledTask|Unregister-StorageSubsystem|Update-AllBranches|Update-AutologgerConfig|Update-Disk|Update-DscConfiguration|Update-EtwTraceSession|Update-HostStorageCache|Update-IscsiTarget|Update-IscsiTargetPortal|Update-Module|Update-Module|Update-Module|Update-ModuleManifest|Update-ModuleManifest|Update-ModuleManifest|Update-MpSignature|Update-MpSignature|Update-NetIPsecRule|Update-Script|Update-Script|Update-Script|Update-ScriptFileInfo|Update-ScriptFileInfo|Update-ScriptFileInfo|Update-SmbMultichannelConnection|Update-StorageFirmware|Update-StoragePool|Update-StorageProviderCache|V:|vimdiff|W:|Write-ColorPreview|Write-DtcTransactionsTraceSession|Write-GitStatus|Write-PrinterNfcTag|Write-Prompt|Write-VcsStatus|Write-VolumeCache|Write-WithPrompt|X:|Y:|Z:|Add-AppxPackage|Add-AppxProvisionedPackage|Add-AppxVolume|Add-BitsFile|Add-CertificateEnrollmentPolicyServer|Add-Computer|Add-Content|Add-History|Add-JobTrigger|Add-KdsRootKey|Add-LocalGroupMember|Add-Member|Add-PSSnapin|Add-Type|Add-WindowsCapability|Add-WindowsDriver|Add-WindowsImage|Add-WindowsPackage|Checkpoint-Computer|Clear-Content|Clear-EventLog|Clear-History|Clear-Item|Clear-ItemProperty|Clear-KdsCache|Clear-RecycleBin|Clear-Tpm|Clear-Variable|Clear-WindowsCorruptMountPoint|Compare-Object|Complete-BitsTransfer|Complete-DtcDiagnosticTransaction|Complete-Transaction|Confirm-SecureBootUEFI|Connect-PSSession|Connect-WSMan|ConvertFrom-Csv|ConvertFrom-Json|ConvertFrom-SecureString|ConvertFrom-String|ConvertFrom-StringData|Convert-Path|Convert-String|ConvertTo-Csv|ConvertTo-Html|ConvertTo-Json|ConvertTo-ProcessMitigationPolicy|ConvertTo-SecureString|ConvertTo-TpmOwnerAuth|ConvertTo-Xml|Copy-Item|Copy-ItemProperty|Debug-Job|Debug-Process|Debug-Runspace|Delete-DeliveryOptimizationCache|Disable-AppBackgroundTaskDiagnosticLog|Disable-ComputerRestore|Disable-JobTrigger|Disable-LocalUser|Disable-PSBreakpoint|Disable-PSRemoting|Disable-PSSessionConfiguration|Disable-RunspaceDebug|Disable-ScheduledJob|Disable-TlsCipherSuite|Disable-TlsEccCurve|Disable-TlsSessionTicketKey|Disable-TpmAutoProvisioning|Disable-WindowsErrorReporting|Disable-WindowsOptionalFeature|Disable-WSManCredSSP|Disconnect-PSSession|Disconnect-WSMan|Dismount-AppxVolume|Dismount-WindowsImage|Enable-AppBackgroundTaskDiagnosticLog|Enable-ComputerRestore|Enable-JobTrigger|Enable-LocalUser|Enable-PSBreakpoint|Enable-PSRemoting|Enable-PSSessionConfiguration|Enable-RunspaceDebug|Enable-ScheduledJob|Enable-TlsCipherSuite|Enable-TlsEccCurve|Enable-TlsSessionTicketKey|Enable-TpmAutoProvisioning|Enable-WindowsErrorReporting|Enable-WindowsOptionalFeature|Enable-WSManCredSSP|Enter-PSHostProcess|Enter-PSSession|Exit-PSHostProcess|Exit-PSSession|Expand-WindowsCustomDataImage|Expand-WindowsImage|Export-Alias|Export-BinaryMiLog|Export-Certificate|Export-Clixml|Export-Console|Export-Counter|Export-Csv|Export-FormatData|Export-ModuleMember|Export-PfxCertificate|Export-ProvisioningPackage|Export-PSSession|Export-StartLayout|Export-StartLayoutEdgeAssets|Export-TlsSessionTicketKey|Export-Trace|Export-WindowsCapabilitySource|Export-WindowsDriver|Export-WindowsImage|Find-Package|Find-PackageProvider|ForEach-Object|Format-Custom|Format-List|Format-SecureBootUEFI|Format-Table|Format-Wide|Get-Acl|Get-Alias|Get-AppxDefaultVolume|Get-AppxPackage|Get-AppxPackageManifest|Get-AppxProvisionedPackage|Get-AppxVolume|Get-AuthenticodeSignature|Get-BitsTransfer|Get-Certificate|Get-CertificateAutoEnrollmentPolicy|Get-CertificateEnrollmentPolicyServer|Get-CertificateNotificationTask|Get-ChildItem|Get-CimAssociatedInstance|Get-CimClass|Get-CimInstance|Get-CimSession|Get-Clipboard|Get-CmsMessage|Get-Command|Get-ComputerInfo|Get-ComputerRestorePoint|Get-Content|Get-ControlPanelItem|Get-Counter|Get-Credential|Get-Culture|Get-DAPolicyChange|Get-Date|Get-DeliveryOptimizationLog|Get-DeliveryOptimizationLogAnalysis|Get-Event|Get-EventLog|Get-EventSubscriber|Get-ExecutionPolicy|Get-FormatData|Get-Help|Get-History|Get-Host|Get-HotFix|Get-Item|Get-ItemProperty|Get-ItemPropertyValue|Get-Job|Get-JobTrigger|Get-KdsConfiguration|Get-KdsRootKey|Get-LocalGroup|Get-LocalGroupMember|Get-LocalUser|Get-Location|Get-Member|Get-Module|Get-NonRemovableAppsPolicy|Get-Package|Get-PackageProvider|Get-PackageSource|Get-PfxCertificate|Get-PfxData|Get-PmemDisk|Get-PmemPhysicalDevice|Get-PmemUnusedRegion|Get-Process|Get-ProcessMitigation|Get-ProvisioningPackage|Get-PSBreakpoint|Get-PSCallStack|Get-PSDrive|Get-PSHostProcessInfo|Get-PSProvider|Get-PSReadLineKeyHandler|Get-PSReadLineOption|Get-PSSession|Get-PSSessionCapability|Get-PSSessionConfiguration|Get-PSSnapin|Get-Random|Get-Runspace|Get-RunspaceDebug|Get-ScheduledJob|Get-ScheduledJobOption|Get-SecureBootPolicy|Get-SecureBootUEFI|Get-Service|Get-TimeZone|Get-TlsCipherSuite|Get-TlsEccCurve|Get-Tpm|Get-TpmEndorsementKeyInfo|Get-TpmSupportedFeature|Get-TraceSource|Get-Transaction|Get-TroubleshootingPack|Get-TrustedProvisioningCertificate|Get-TypeData|Get-UICulture|Get-Unique|Get-Variable|Get-WheaMemoryPolicy|Get-WIMBootEntry|Get-WinAcceptLanguageFromLanguageListOptOut|Get-WinCultureFromLanguageListOptOut|Get-WinDefaultInputMethodOverride|Get-WindowsCapability|Get-WindowsDeveloperLicense|Get-WindowsDriver|Get-WindowsEdition|Get-WindowsErrorReporting|Get-WindowsImage|Get-WindowsImageContent|Get-WindowsOptionalFeature|Get-WindowsPackage|Get-WindowsReservedStorageState|Get-WindowsSearchSetting|Get-WinEvent|Get-WinHomeLocation|Get-WinLanguageBarOption|Get-WinSystemLocale|Get-WinUILanguageOverride|Get-WinUserLanguageList|Get-WmiObject|Get-WSManCredSSP|Get-WSManInstance|Group-Object|Import-Alias|Import-BinaryMiLog|Import-Certificate|Import-Clixml|Import-Counter|Import-Csv|Import-LocalizedData|Import-Module|Import-PackageProvider|Import-PfxCertificate|Import-PSSession|Import-StartLayout|Import-TpmOwnerAuth|Initialize-PmemPhysicalDevice|Initialize-Tpm|Install-Package|Install-PackageProvider|Install-ProvisioningPackage|Install-TrustedProvisioningCertificate|Invoke-CimMethod|Invoke-Command|Invoke-CommandInDesktopPackage|Invoke-DscResource|Invoke-Expression|Invoke-History|Invoke-Item|Invoke-RestMethod|Invoke-TroubleshootingPack|Invoke-WebRequest|Invoke-WmiMethod|Invoke-WSManAction|Join-DtcDiagnosticResourceManager|Join-Path|Limit-EventLog|Measure-Command|Measure-Object|Mount-AppxVolume|Mount-WindowsImage|Move-AppxPackage|Move-Item|Move-ItemProperty|New-Alias|New-CertificateNotificationTask|New-CimInstance|New-CimSession|New-CimSessionOption|New-DtcDiagnosticTransaction|New-Event|New-EventLog|New-FileCatalog|New-Item|New-ItemProperty|New-JobTrigger|New-LocalGroup|New-LocalUser|New-Module|New-ModuleManifest|New-NetIPsecAuthProposal|New-NetIPsecMainModeCryptoProposal|New-NetIPsecQuickModeCryptoProposal|New-Object|New-PmemDisk|New-ProvisioningRepro|New-PSDrive|New-PSRoleCapabilityFile|New-PSSession|New-PSSessionConfigurationFile|New-PSSessionOption|New-PSTransportOption|New-PSWorkflowExecutionOption|New-ScheduledJobOption|New-SelfSignedCertificate|New-Service|New-TimeSpan|New-TlsSessionTicketKey|New-Variable|New-WebServiceProxy|New-WindowsCustomImage|New-WindowsImage|New-WinEvent|New-WinUserLanguageList|New-WSManInstance|New-WSManSessionOption|Optimize-AppxProvisionedPackages|Optimize-WindowsImage|Out-Default|Out-File|Out-GridView|Out-Host|Out-Null|Out-Printer|Out-String|Pop-Location|Protect-CmsMessage|Publish-DscConfiguration|Push-Location|Read-Host|Receive-DtcDiagnosticTransaction|Receive-Job|Receive-PSSession|Register-ArgumentCompleter|Register-CimIndicationEvent|Register-EngineEvent|Register-ObjectEvent|Register-PackageSource|Register-PSSessionConfiguration|Register-ScheduledJob|Register-WmiEvent|Remove-AppxPackage|Remove-AppxProvisionedPackage|Remove-AppxVolume|Remove-BitsTransfer|Remove-CertificateEnrollmentPolicyServer|Remove-CertificateNotificationTask|Remove-CimInstance|Remove-CimSession|Remove-Computer|Remove-Event|Remove-EventLog|Remove-Item|Remove-ItemProperty|Remove-Job|Remove-JobTrigger|Remove-LocalGroup|Remove-LocalGroupMember|Remove-LocalUser|Remove-Module|Remove-PmemDisk|Remove-PSBreakpoint|Remove-PSDrive|Remove-PSReadLineKeyHandler|Remove-PSSession|Remove-PSSnapin|Remove-TypeData|Remove-Variable|Remove-WindowsCapability|Remove-WindowsDriver|Remove-WindowsImage|Remove-WindowsPackage|Remove-WmiObject|Remove-WSManInstance|Rename-Computer|Rename-Item|Rename-ItemProperty|Rename-LocalGroup|Rename-LocalUser|Repair-WindowsImage|Reset-ComputerMachinePassword|Resolve-DnsName|Resolve-Path|Restart-Computer|Restart-Service|Restore-Computer|Resume-BitsTransfer|Resume-Job|Resume-ProvisioningSession|Resume-Service|Save-Help|Save-Package|Save-WindowsImage|Select-Object|Select-String|Select-Xml|Send-DtcDiagnosticTransaction|Send-MailMessage|Set-Acl|Set-Alias|Set-AppBackgroundTaskResourcePolicy|Set-AppxDefaultVolume|Set-AppXProvisionedDataFile|Set-AuthenticodeSignature|Set-BitsTransfer|Set-CertificateAutoEnrollmentPolicy|Set-CimInstance|Set-Clipboard|Set-Content|Set-Culture|Set-Date|Set-DeliveryOptimizationStatus|Set-DODownloadMode|Set-DOPercentageMaxBackgroundBandwidth|Set-DOPercentageMaxForegroundBandwidth|Set-DscLocalConfigurationManager|Set-ExecutionPolicy|Set-Item|Set-ItemProperty|Set-JobTrigger|Set-KdsConfiguration|Set-LocalGroup|Set-LocalUser|Set-Location|Set-NonRemovableAppsPolicy|Set-PackageSource|Set-ProcessMitigation|Set-PSBreakpoint|Set-PSDebug|Set-PSReadLineKeyHandler|Set-PSReadLineOption|Set-PSSessionConfiguration|Set-ScheduledJob|Set-ScheduledJobOption|Set-SecureBootUEFI|Set-Service|Set-StrictMode|Set-TimeZone|Set-TpmOwnerAuth|Set-TraceSource|Set-Variable|Set-WheaMemoryPolicy|Set-WinAcceptLanguageFromLanguageListOptOut|Set-WinCultureFromLanguageListOptOut|Set-WinDefaultInputMethodOverride|Set-WindowsEdition|Set-WindowsProductKey|Set-WindowsReservedStorageState|Set-WindowsSearchSetting|Set-WinHomeLocation|Set-WinLanguageBarOption|Set-WinSystemLocale|Set-WinUILanguageOverride|Set-WinUserLanguageList|Set-WmiInstance|Set-WSManInstance|Set-WSManQuickConfig|Show-Command|Show-ControlPanelItem|Show-EventLog|Show-WindowsDeveloperLicenseRegistration|Sort-Object|Split-Path|Split-WindowsImage|Start-BitsTransfer|Start-DscConfiguration|Start-DtcDiagnosticResourceManager|Start-Job|Start-OSUninstall|Start-Process|Start-Service|Start-Sleep|Start-Transaction|Start-Transcript|Stop-Computer|Stop-DtcDiagnosticResourceManager|Stop-Job|Stop-Process|Stop-Service|Stop-Transcript|Suspend-BitsTransfer|Suspend-Job|Suspend-Service|Switch-Certificate|Tee-Object|Test-Certificate|Test-ComputerSecureChannel|Test-Connection|Test-DscConfiguration|Test-FileCatalog|Test-KdsRootKey|Test-ModuleManifest|Test-Path|Test-PSSessionConfigurationFile|Test-WSMan|Trace-Command|Unblock-File|Unblock-Tpm|Undo-DtcDiagnosticTransaction|Undo-Transaction|Uninstall-Package|Uninstall-ProvisioningPackage|Uninstall-TrustedProvisioningCertificate|Unprotect-CmsMessage|Unregister-Event|Unregister-PackageSource|Unregister-PSSessionConfiguration|Unregister-ScheduledJob|Unregister-WindowsDeveloperLicense|Update-DscConfiguration|Update-FormatData|Update-Help|Update-List|Update-TypeData|Update-WIMBootEntry|Use-Transaction|Use-WindowsUnattend|Wait-Debugger|Wait-Event|Wait-Job|Wait-Process|Where-Object|Write-Debug|Write-Error|Write-EventLog|Write-Host|Write-Information|Write-Output|Write-Progress|Write-Verbose|Write-Warning)\>" + +## Functions +icolor brightyellow "\" + +## Comparison operators +icolor brightyellow "-\<(eq|ne|gt|lt|ge|le|like|notlike|match|notmatch|contains|notcontains|in|notin|replace|is|isnot)\>" + +## Variables +icolor brightred "\$[a-zA-Z0-9_]+" + +## Statements +icolor brightcyan "\<(if|do|else|elseif|for|foreach|switch|until|while)\>" + +## Comments +color brightblue "#.*$" +color brightblue start="<#" end="#>" + +## Quoted text +color brightwhite "\"[^\"]*\"" +color brightwhite "'[^']*'" + +## Text between %'s and @'s +icolor brightmagenta "\%[^\%]*\%" +icolor brightmagenta start="@\"" end="\"@" + +## Trailing whitespace +color ,green "[[:space:]]+$" diff --git a/nano/privoxy.nanorc b/nano/privoxy.nanorc new file mode 100755 index 0000000..c4d16ae --- /dev/null +++ b/nano/privoxy.nanorc @@ -0,0 +1,41 @@ +syntax "privoxycfg" "(\.|/|)privoxy/config$" +color brightwhite "[0-9]" +color cyan "^[[:space:]]*[.a-z0-9-]*" +color brightgreen "\ 1" +color brightwhite "1[0-9]" +color brightblue "\ \/.*$" +color brightred "\ 0" +color magenta "http:.*$" + +# important config settings without which it may not work the way You want it to :) +color yellow "(listen-address|forward|accept-intercepted-requests)" + +# comments +color green "#.*$" + +####################################### +syntax "privoxyaction" "(\.|/|).action$" + +color brightyellow start="\{" end="\}" +color cyan "(\+|\-)(add-header|block|client-header-(filter|tagger)|content-type-overwrite|crunch-(client-header|if-none-match|server-header))" +color cyan "(\+|\-)(deanimate-gifs|downgrade-http-version|fast-redirects|filter|force-text-mode|forward-override|handle-as-empty-document)" +color cyan "(\+|\-)(hide-(accept-language|content-disposition|forwarded-for-headers|from-header|if-modified-since|refe(r|rr)er|user-agent))" +color cyan "(\+|\-)(handle-as-image|inspect-jpegs|limit-connect|overwrite-last-modified|prevent-compression|server-header-(filter|tagger))" +color cyan "(\+|\-)(session-cookies-only|set-image-blocker|crunch-(outgoing|incoming)-cookies|kill-popups|redirect|send(-|-vanilla-)wafer)" + +color yellow "\{\{(settings|alias)\}\}" +# comments +color green "#.*$" +color brightwhite "##.*$" +color brightgreen "#-.*$" + +####################################### +#syntax "privoxytemplate" "/etc/privoxy/templates/(\.|/|)" +#color white "^.+$" +#color green start="<" end=">" +#color cyan "<[^> ]+" +#color cyan ">" +#color yellow start="" +#color yellow start="" +#color red "&[^;]*;" + diff --git a/nano/profile.nanorc b/nano/profile.nanorc new file mode 100755 index 0000000..066da80 --- /dev/null +++ b/nano/profile.nanorc @@ -0,0 +1,10 @@ +### all *profile files ( ~/.bash_profile, /etc/profile) +syntax "profiles" "(\.|/|)profile$" +color red "'(\\.|[^'])*'" +color blue ""(\\.|[^\"])*"" +color magenta "[a-zA-Z0-9\_]+=" +color magenta "\<(sudo)\>" +color cyan "\<(export)\>" "\<(alias)\>" +color brightred "\<(umask)\>.*$" +color green "#.*$" + diff --git a/nano/prolog.nanorc b/nano/prolog.nanorc new file mode 100755 index 0000000..ecd9e41 --- /dev/null +++ b/nano/prolog.nanorc @@ -0,0 +1,35 @@ +## Here is a prolog example. + +syntax "prolog" "\.pl" +comment "%" + +# Reset everything +color normal ".*" + +# Integers and floats +color yellow "(^| |=)[0-9]+\.?[0-9]*" + +# Variables +color red "(^|[[:blank:]]|\(|,)[A-Z]+" +color red "(^|[[:blank:]]|\(|,)_[0-9a-zA-Z_]+($|[[:blank:]]|,|\))" + +# Anonymous variable '_' +color yellow "(^|[[:blank:]]|\(|,)_($|[[:blank:]]|,|\))" + +# Functions +color cyan "(^|[[:blank:]])\w+\(" +color normal "\(|\)|\[|\]|,|=|\\=" + +# Atoms +color green start="\"" end="\"" +color green start="'" end="'" + +# Comments +color white "(^|[[:blank:]])%.*$" +color white start="^\s*/\*" end="\*/" + +# Reminders +color black,yellow "(BUG|DEBUG|FIXME|IDEA|NOTE|REVIEW|TEMP|TODO|WARNING|XXX)" + +# Spaces in front of tabs +color ,red " + +" diff --git a/nano/properties.nanorc b/nano/properties.nanorc new file mode 100755 index 0000000..bb75d45 --- /dev/null +++ b/nano/properties.nanorc @@ -0,0 +1,6 @@ +syntax "properties" "\.properties$" +# property key +icolor green "^[^:=]+[:=]" + +# comments +icolor blue "([[:space:]])*[#!].*$" diff --git a/nano/pug.nanorc b/nano/pug.nanorc new file mode 100755 index 0000000..a1855c0 --- /dev/null +++ b/nano/pug.nanorc @@ -0,0 +1,45 @@ +syntax "Pug" "\.pug$" +# Elements +color yellow "^\s*([a-z0-9]+)" +# Main elements +color red "^\s*(html|head|body)" +# Includes +icolor magenta "^\s*(include)" +# Variables +color brightblue "^\s*(\-)\s(var)\s([a-z0-9]+)" +icolor magenta "^\s*-\s(var)$" "^\s*-\s(var)\s" +# Cases +color brightblue "^\s*(case)\s(.*)" +color cyan "^\s*(when)\s(.*)" +icolor magenta "^\s*(case|when|default)$" "^\s*(case|when|default)\s" +color brightred "^\s*-\s(break)$" "^\s*-\s(break)\s" +# Conditionals +icolor magenta "^\s*(if|else|else if)$" "^\s*(if|else|else if)\s" +# For loops +icolor magenta "^\s*-\s(for)" +# Each +icolor magenta "^\s*(each)$" "^\s*(each)\s" +# Parenthesis content +color blue start="\(" end="\)" +# Strings +color cyan "('[^']*')|(\"[^\"]*\")" +# Parenthesis, commas, equals +icolor green "\(" "\)" "\," "\=" +# Comments, dashes and spaces +color blue "\s+(//.*)" +color blue start="^\s*/\*" end="\*/" +color white "^\s*(\-)" +color ,green "[[:space:]]+$" +# Unbuffered comments +color brightblue "\s+(//-.*)" +# HTML-style conditional comments +color brightmagenta start="" +color brightmagenta "" +# HTML-style elements +color yellow "<([^!].*)>" +# Pipes +color yellow,magenta "\|" +# Doctype +color brightblack "^\s*(doctype)(.*)" +# Links +icolor brightgreen "https?:\/\/(www\.)?[a-zA-Z0-9@%._\+~#=]{2,256}\.[a-z]{2,6}\b([-a-zA-Z0-9@:%_\+.~#?&//=]*)" "_blank" diff --git a/nano/puppet.nanorc b/nano/puppet.nanorc new file mode 100755 index 0000000..8511dc5 --- /dev/null +++ b/nano/puppet.nanorc @@ -0,0 +1,38 @@ +## Nano syntax highlighting for Puppet. +## +syntax "Puppet" "\.pp$" + +#This goes first, so the normal builtins will override in some classes +## Paramerers +color brightwhite "^[[:space:]]([a-z][a-z0-9_]+)" +color brightgreen "\$[a-z:][a-z0-9_:]+" + +## List of built in types, also catches defines +color yellow "\<(augeas|computer|cron|exec|file|filebucket|group|host|interface|k5login|macauthorization|mailalias|maillist|mcx|mount|nagios_command|nagios_contact|nagios_contactgroup|nagios_host|nagios_hostdependency|nagios_hostescalation|nagios_hostextinfo|nagios_hostgroup|nagios_service|nagios_servicedependency|nagios_serviceescalation|nagios_serviceextinfo|nagios_servicegroup|nagios_timeperiod|notify|package|resources|router|schedule|scheduled_task|selboolean|selmodule|service|ssh_authorized_key|sshkey|stage|tidy|user|vlan|yumrepo|zfs|zone|zpool|anchor)\>" +color yellow "\<(class|define|if|else|undef|inherits)\>" +color red "(=|-|~|>)" + +## Constants +color brightblue "(\$|@|@@)?\<[A-Z]+[0-9A-Z_a-z]*" +## Ruby "symbols" +color magenta "([ ]|^):[0-9A-Z_]+\>" +## Regular expressions +color brightmagenta "/([^/]|(\\/))*/[iomx]*" "%r\{([^}]|(\\}))*\}[iomx]*" +## Shell command expansion is in `backticks` or like %x{this}. These are +## "double-quotish" (to use a perlism). +color brightblue "`[^`]*`" "%x\{[^}]*\}" +## Strings, double-quoted +color green ""([^"]|(\\"))*"" "%[QW]?\{[^}]*\}" "%[QW]?\([^)]*\)" "%[QW]?<[^>]*>" "%[QW]?\[[^]]*\]" "%[QW]?\$[^$]*\$" "%[QW]?\^[^^]*\^" "%[QW]?![^!]*!" +## Expression substitution. These go inside double-quoted strings, +## "like ${this}". +color brightgreen "\$\{[^}]*\}" +## Strings, single-quoted +color green "'([^']|(\\'))*'" "%[qw]\{[^}]*\}" "%[qw]\([^)]*\)" "%[qw]<[^>]*>" "%[qw]\[[^]]*\]" "%[qw]\$[^$]*\$" "%[qw]\^[^^]*\^" "%[qw]![^!]*!" +## Comments +color cyan "#[^{].*$" "#$" +color brightcyan "##[^{].*$" "##$" +## Some common markers +color brightcyan "(XXX|TODO|FIXME|\?\?\?)" +## Trailing spaces +color ,green "[[:space:]]+$" + diff --git a/nano/python.nanorc b/nano/python.nanorc new file mode 100755 index 0000000..76bdd52 --- /dev/null +++ b/nano/python.nanorc @@ -0,0 +1,33 @@ +## Here is an example for Python. +## GNU Nano 2.2.6 or higher syntax definition of Python files, using regexp. +## +## (C) 02/2013 Lilian Besson (lilian DOT besson AT normale DOT fr) +## Last version : http://besson.qc.to/NanoSyntax/python.nanorc +## +syntax "python" "\.py$" +header "^#!.*/python[-0-9._]*" +## Method application +color white "[a-zA-Z_][a-zA-Z0-9_]+\.[a-zA-Z][a-zA-Z0-9_]+" +## Definition of values and classes +icolor brightblue "def [0-9A-Z_]+" +icolor brightblue "class [0-9A-Z_]+" +## Keywords +color brightcyan "\<(and|as|assert|break|class|continue|def|del|elif|else|except|exec|finally|for|from|global|if|import|in|is|lambda|not|or|pass|print|raise|return|try|while|with|yield)\>" +## Commentary +color brightred "#.*$" +## Specials keywords +color brightwhite "__[a-zA-Z][a-zA-Z0-9_]*" +icolor brightwhite "__[a-zA-Z][a-zA-Z0-9_]*__" +## Usuals functions +color brightyellow "\<(min|max|len|str|repr|==)\>" +## strings, docstrings +color brightmagenta "['][^']*[^\\][']" "[']{3}.*[^\\][']{3}" +color brightmagenta "["][^"]*[^\\]["]" "["]{3}.*[^\\]["]{3}" +color brightmagenta "['][^']*\\[']" +color brightmagenta "["][^"]*\\["]" +## Empty strings +color brightmagenta """" "''" +color brightyellow start=""""[^"]" end=""""" start="'''[^']" end="'''" +color brightyellow start=""""" end=""""" start="'''" end="'''" +## Empty strings, docstrings +color brightyellow """""""" diff --git a/nano/rcfiles-new.nanorc b/nano/rcfiles-new.nanorc new file mode 100755 index 0000000..ee309bb --- /dev/null +++ b/nano/rcfiles-new.nanorc @@ -0,0 +1,31 @@ +## this .rc is not meant for rcs in etc but those used in apps like wine +syntax "rc" "\.rc$" +color cyan start="\{" end="\}" +color brightgreen start="<" end=">" +color brightyellow "(\"(\\.|[^\"])*\"|[0-9])" +color green start="\/\*" end="\*\/" +color yellow "(#(define|include)|LANGUAGE|FONT)" + +### all *rc files ( e.g. .bashrc, inputrc, xtermcontrol .... ) +#syntax "rcfiles" "(\.|/|)rc$" "(\.|/|)control$" +syntax "rcfiles" "((.ba|ba|c|.c)sh|input|xinit|eix|(.w|w)minet)|gtk|rc$" +color red "'(\\.|[^'])*'" +color blue ""(\\.|[^\"])*"" +color magenta "[A-Z0-9\_]+=" +color magenta "\<(sudo)\>" +color cyan "\<(alias)\>" +color brightcyan "\<(export)\>" +color yellow "\<(shopt)\>" +color brightred "\<(umask)\>.*$" +color green "#.*$" + +## rc... +syntax "rc2" "(wop|wget)rc$" +color cyan "\=.*$" +color brightgreen start="<" end=">" +color brightyellow "[0-9]" +icolor yellow "^[[:space:]]*[.0-9A-Z_]*[[:space:]]\=" +color brightred "[[:space:]]off" +color brightgreen "[[:space:]]on" +color green "#.*$" + diff --git a/nano/rcfiles.nanorc b/nano/rcfiles.nanorc new file mode 100755 index 0000000..9a93e5a --- /dev/null +++ b/nano/rcfiles.nanorc @@ -0,0 +1,11 @@ +### all *rc files ( e.g. .bashrc, inputrc, xtermcontrol .... ) +syntax "rcfiles" "\rc$" "(\.|/|)control$" +color red "'(\\.|[^'])*'" +color blue ""(\\.|[^\"])*"" +color magenta "[A-Z0-9\_]+=" +color magenta "\<(sudo)\>" +color cyan "\<(alias)\>" +color brightcyan "\<(export)\>" +color yellow "\<(shopt)\>" +color brightred "\<(umask)\>.*$" +color green "#.*$" diff --git a/nano/reST.nanorc b/nano/reST.nanorc new file mode 100755 index 0000000..cdecec2 --- /dev/null +++ b/nano/reST.nanorc @@ -0,0 +1,137 @@ +## Syntax definition for reST with GNU Nano +## +## (C) 02/2013 Lilian Besson (lilian DOT besson AT normale DOT fr) +## Last version : http://besson.qc.to/NanoSyntax/reST.nanorc +## +############################################################################## +# Definition of the name of the syntax : rst +# and capture of the extension : *.rst *.rest *.pytorst +syntax "rst" "\.rest$" "\.rst$" "\.pytorst$" +header "^.*" +############################################################################## +# Numbers +color white "-?[0-9\.][0-9\._,]*([eE]-?)?[0-9\._,]*" +# code block +color brightred,black "(::|FIXME|TODO|NEW|XXX|HOWTO|DEBUG|WARNING|PEP)" +# wrong links (empty) +color white,red "[a-z][a-z]+://[^([[:alnum:]]|[\]\[])]*" +# literals blocks (quotation) like in emails +color red "^ *>+.*$" +# Specials zones +color yellow "\$[^\$]+\$" +# unknown interpreted text +color green,black "`[[:alnum:]]+`" +# anon link targets +color brightgreen "[[:alnum:]]+_[^[[:alnum:]]]" +color cyan "^[[:blank:]]*__ .*$" +# highligths (fixme) +# color brightmagenta "[^`]?`([[:alnum:]]|[[:space:]]|[,-\.\+\(\)\|\[\])+`[^`]?" +color brightmagenta "`([[:alnum:]]|[,-\.\+\(\)\|\[\])+`" +color magenta,black "`([[:alnum:]]|[[:space:]]|[,-\.\+\(\)\|\[\])+`\\" +# Balise et , pour embarquer du JavaScript notamment. +color brightblue,black "" +############################################################################## +# +# Comments and directives +# +# comments +color blue "^\.\. [^[\[_]]*.*$" +# unknown directives +color brightwhite,red "^([[:blank:]]|\|)*\.\. [a-z][a-zA-Z0-9_-]*::.*$" +# usual rst (docutils) directives +icolor brightcyan "^([[:blank:]]|\|)*\.\. (warning|attention|caution|danger|error|hint|important|note|tip|image|figure|contents|container|rubric|topic|sidebar|parsed-literal|epigraph|highlights|pull-quote|compound|table|csv-table|list-table|raw|include|class|meta|title|default-role|role|section-numbering|admonition)*::.*$" +# sphinx directives +color brightcyan "^([[:blank:]]|\|)*\.\. (code-block|literalinclude|senctionauthor|codeauthor|index|only|tabularcolumns|productionlist|glossary|hlist|rubric|centered|seealso|deprecated|versionchanged|versionadded|toctree|function|warning|module|data|dex-table|testcode|testoutput|autofunction)*::.*$" +# sphinx extensions directives +color brightcyan "^([[:blank:]]|\|)*\.\. (gnuplot|runblock|math|todo|todolist|graphviz|digraph|graph|pypi-release)*::.*$" +# rst2s5 additionals directives +color brightcyan "^([[:blank:]]|\|)*\.\. (footer|target-notes)*::.*$" +# directives options +# color cyan "^([[:blank:]]|\|)*:[a-zA-Z][a-zA-Z0-9-]*([[:blank:]]*[[:alnum:]]+(=[[:alnum:]]+)?)*: *" +color cyan ":[a-zA-Z][a-zA-Z0-9-]*([[:blank:]]*[[:alnum:]]+(=[[:alnum:]]+)?)*: *" +############################################################################## +# +# Lists, and tables +# +# lists (not yet perfect) +color brightwhite "(^ *[\*\+-]([[:blank:]]| *[\*\+-])+)|(^ *#\.[[:blank:]]+)|(^ *[0-9]+\.[[:blank:]]+)|(^ *[\(]?[a-z]+[\.\)][[:blank:]]+)|(^ *[\(]?[A-Z]+[\.\)][[:blank:]]+)" +# options lists +color white "^ *([/\+\-]{1,2}[a-zA-Z0-9][[:blank:]]?([[:alnum:]]|_)*[,=]*([[:alnum:]]|_)*[[:blank:]]*)+" +# tables +color white,red "\+--(-+\+)*-+" +color white "\+--(-+\+)*-+\+" +color brightwhite,red "\+==(=+\+)*=+" +color brightwhite "\+==(=+\+)*=+\+" +color brightwhite "^ *==+([[:blank:]]+==+)+" +# special caracter '|' : for tables and for line blocks +color brightwhite "\|" +############################################################################## +# +# Citations and footnotes +# +# Citations +color brightwhite "(\[[[:alnum:]]+\]_)|(^\.\. \[[[:alnum:]]+\])" +# Footnotes +color white "(\[#\*\]_)|(^\.\. \[\*\])" +color white "(\[#[[:alnum:]]*\]_)|(^\.\. \[#[[:alnum:]]*\])" +# Substitutions +color brightblack "(\|[[:alnum:]]+\||^\.\. \|[[:alnum:]]+\| .*)" +############################################################################## +# +# Links and others: +# +# link reference +color brightgreen "((`[^`]+`_{1,2})|([[:blank:]]*\.\. _[[:alnum:]]+.*: .*$))" +# targets +color brightgreen "^ *\.\. _[[:alnum:]]+:" +# email +icolor brightred,black "(mailto:)?[[:alnum:]]([[:alnum:]]|[_\.\[\]\--]|\.|-)*(@|AT)[[:alnum:]]([[:alnum:]]|[_\.\[\]\--]|\.|-)*\.[[:alnum:]]+" +# http, ftp, https, apt, links +icolor red,black "[a-z][a-z]+://[[:alnum:]]([[:alnum:]]|[-_\.~#\?:=%&])*([[:alnum:]]|[-/_\.~#\?:=%&;])*" +############################################################################## +# +# Markup for bold, italics and code +# +# italics +color red "\*[[:alnum:]]([[:alnum:]]|[[:space:]]|-|,|;|\.|'|\$|\\|/)*\*\\?" +color brightmagenta "\"[a-zA-Z]([[:alnum:]]|[[:space:]]|-|,|;|\.|'|\$|\\|/)*\"\\?" +color brightmagenta "'[a-zA-Z]([[:alnum:]]|-|,|;|\.|'|\$|\\|/)*'\\?" +color brightmagenta "“[a-zA-Z]([[:alnum:]]|-|,|;|\.|'|\$|\\|/)*”\\?" +# bold +color brightyellow "\*\*[^*^*]+\*\*\\?" +# error handling +color brightred,black "\|\*\*\*[^*]+\*\*\*\|" +# unknown interpreted texts +color yellow ":[[:alnum:]]+:`[^`]+`\\?" +color yellow "`[^`]+`:[[:alnum:]]+:\\?" +# eq and others +color brightyellow ":(PEP|RFC|sub|sup|strong|code|emphasis|strong|literal):`[^`]+`\\?" +# math +color brightyellow,black ":math:`[^`]+`\\?" +# specials comments (un handle by previous rules) +color red "^\.\. \(c\).*$" +# code +color white,red "``.+``" +#color white,red start="``" end="``" +color yellow "``[^`]+``\\?" +############################################################################## +# +# Titles +# +# h1 +color brightyellow "^###+$" +color yellow "^\*\*\*+$" +# h2 +color brightmagenta "^===+$" +# h3 +color brightred "^---+$" +# h4 +color brightblue "^\^\^\^+$" +# h5 +color blue "^"""+$" +# h6 +color brightmagenta "^~~~+$" +# inline markups +color brightmagenta,black "^```+$" +## END +############################################################################## \ No newline at end of file diff --git a/nano/rego.nanorc b/nano/rego.nanorc new file mode 100755 index 0000000..f48673a --- /dev/null +++ b/nano/rego.nanorc @@ -0,0 +1,22 @@ +# Syntax highlighting for Rego (https://www.openpolicyagent.org/) + +syntax "Rego" "\.rego" +comment "#" + +## Reserved words +color cyan "\<(as|default|else|import|package|not|some|with)\>" +color brightblue "\<(false|null|true)\>" + +## Built-ins +### Generated from `cat v0.25.2.json | jq -r .builtins[].name | tr '\n' '|'` +color yellow "\<(abs|all|and|any|array.concat|array.slice|assign|base64.decode|base64.encode|base64.is_valid|base64url.decode|base64url.encode|base64url.encode_no_pad|bits.and|bits.lsh|bits.negate|bits.or|bits.rsh|bits.xor|cast_array|cast_boolean|cast_null|cast_object|cast_set|cast_string|concat|contains|count|crypto.md5|crypto.sha1|crypto.sha256|crypto.x509.parse_certificate_request|crypto.x509.parse_certificates|div|endswith|eq|equal|format_int|glob.match|glob.quote_meta|graph.reachable|gt|gte|hex.decode|hex.encode|http.send|indexof|intersection|io.jwt.decode|io.jwt.decode_verify|io.jwt.encode_sign|io.jwt.encode_sign_raw|io.jwt.verify_es256|io.jwt.verify_es384|io.jwt.verify_es512|io.jwt.verify_hs256|io.jwt.verify_hs384|io.jwt.verify_hs512|io.jwt.verify_ps256|io.jwt.verify_ps384|io.jwt.verify_ps512|io.jwt.verify_rs256|io.jwt.verify_rs384|io.jwt.verify_rs512|is_array|is_boolean|is_null|is_number|is_object|is_set|is_string|json.filter|json.is_valid|json.marshal|json.patch|json.remove|json.unmarshal|lower|lt|lte|max|min|minus|mul|neq|net.cidr_contains|net.cidr_contains_matches|net.cidr_expand|net.cidr_intersects|net.cidr_merge|net.cidr_overlap|numbers.range|object.filter|object.get|object.remove|object.union|opa.runtime|or|plus|product|re_match|regex.find_all_string_submatch_n|regex.find_n|regex.globs_match|regex.is_valid|regex.match|regex.split|regex.template_match|rego.parse_module|rem|replace|round|semver.compare|semver.is_valid|set_diff|sort|split|sprintf|startswith|strings.replace_n|substring|sum|time.add_date|time.clock|time.date|time.now_ns|time.parse_duration_ns|time.parse_ns|time.parse_rfc3339_ns|time.weekday|to_number|trace|trim|trim_left|trim_prefix|trim_right|trim_space|trim_suffix|type_name|union|units.parse_bytes|upper|urlquery.decode|urlquery.decode_object|urlquery.encode|urlquery.encode_object|uuid.rfc4122|walk|yaml.is_valid|yaml.marshal|yaml.unmarshal)\>" + +# Numbers +color purple "\<([0-9]+)\>" + +# Strings +color green ""(\\.|[^"])*"" +color green "`(\\.|[^\\`])*`" + +## Comments +color brightblack "^\s*#.*" diff --git a/nano/rpmspec.nanorc b/nano/rpmspec.nanorc new file mode 100755 index 0000000..eab8ee5 --- /dev/null +++ b/nano/rpmspec.nanorc @@ -0,0 +1,27 @@ +syntax "Rpmspec" "\.spec$" "\.rpmspec$" + +color cyan "\<(Icon|ExclusiveOs|ExcludeOs):" +color cyan "\<(BuildArch|BuildArchitectures|ExclusiveArch|ExcludeArch):" +color cyan "\<(Conflicts|Obsoletes|Provides|Requires|Requires\(.*\)|Enhances|Suggests|BuildConflicts|BuildRequires|Recommends|PreReq|Supplements):" +color cyan "\<(Epoch|Serial|Nosource|Nopatch):" +color cyan "\<(AutoReq|AutoProv|AutoReqProv):" +color cyan "\<(Copyright|License|Summary|Summary\(.*\)|Distribution|Vendor|Packager|Group|Source[0-9]*|Patch[0-9]*|BuildRoot|Prefix):" +color cyan "\<(Name|Version|Release|Url|URL):" +color cyan start="^(Source|Patch)" end=":" +color cyan "(i386|i486|i586|i686|athlon|ia64|alpha|alphaev5|alphaev56|alphapca56|alphaev6|alphaev67|sparc|sparcv9|sparc64armv3l|armv4b|armv4lm|ips|mipsel|ppc|ppc|iseries|ppcpseries|ppc64|m68k|m68kmint|Sgi|rs6000|i370|s390x|s390|noarch)" +color cyan "(ifarch|ifnarch|ifos|ifnos)" +color yellow ""(\\.|[^"])*"|'(\\.|[^'])*'" +color brightyellow "%(if|else|endif|define|global|undefine)" +color brightyellow "%_?([A-Z_a-z_0-9_]*)" +color brightyellow start="%\{" end="\}" +color brightyellow start="%\{__" end="\}" +color brightyellow "\$(RPM_BUILD_ROOT)\>" +color brightmagenta "^%(build$|changelog|check$|clean$|description)" +color brightmagenta "^%(files|install$|package|prep$)" +color brightmagenta "^%(pre|preun|pretrans|post|postun|posttrans)" +color brightmagenta "^%(trigger|triggerin|triggerpostun|triggerun|verifyscript)" +color brightblack "(^|[[:space:]])#([^{].*)?$" +color blue "^\*.*$" +color ,green "[[:space:]]+$" +color ,red " + +| + +" +color brightwhite,cyan "TODO:?" diff --git a/nano/rsync.nanorc b/nano/rsync.nanorc new file mode 100755 index 0000000..9533757 --- /dev/null +++ b/nano/rsync.nanorc @@ -0,0 +1,7 @@ +syntax "rsync" "rsyncd.conf$" +color cyan "(hosts|(u|g)id|pid\ file|use\ chroot|read\ only|address|max\ connections|motd\ file)" +color cyan "(log\ format|syslog\ facility|timeout)" +color yellow "(path|comment|exclude)" +color brightyellow start="\[" end="\]" +color green "#.*$" + diff --git a/nano/ruby.nanorc b/nano/ruby.nanorc new file mode 100755 index 0000000..830dac6 --- /dev/null +++ b/nano/ruby.nanorc @@ -0,0 +1,30 @@ +## Here is an example for Ruby. +## +syntax "ruby" "\.rb$" "Gemfile" "config.ru" "Rakefile" "Capfile" "Vagrantfile" +## Asciibetical list of reserved words +color yellow "\<(BEGIN|END|alias|and|begin|break|case|class|def|defined\?|do|else|elsif|end|ensure|false|for|if|in|module|next|nil|not|or|redo|rescue|retry|return|self|super|then|true|undef|unless|until|when|while|yield)\>" +## Constants +color brightblue "(\$|@|@@)?\<[A-Z]+[0-9A-Z_a-z]*" +## Ruby "symbols" +icolor magenta "([ ]|^):[0-9A-Z_]+\>" +## Some unique things we want to stand out +color brightyellow "\<(__FILE__|__LINE__)\>" +## Regular expressions +color brightmagenta "/([^/]|(\\/))*/[iomx]*" "%r\{([^}]|(\\}))*\}[iomx]*" +## Shell command expansion is in `backticks` or like %x{this}. These are +## "double-quotish" (to use a perlism). +color brightblue "`[^`]*`" "%x\{[^}]*\}" +## Strings, double-quoted +color green ""([^"]|(\\"))*"" "%[QW]?\{[^}]*\}" "%[QW]?\([^)]*\)" "%[QW]?<[^>]*>" "%[QW]?\[[^]]*\]" "%[QW]?\$[^$]*\$" "%[QW]?\^[^^]*\^" "%[QW]?![^!]*!" +## Expression substitution. These go inside double-quoted strings, +## "like #{this}". +color brightgreen "#\{[^}]*\}" +## Strings, single-quoted +color green "'([^']|(\\'))*'" "%[qw]\{[^}]*\}" "%[qw]\([^)]*\)" "%[qw]<[^>]*>" "%[qw]\[[^]]*\]" "%[qw]\$[^$]*\$" "%[qw]\^[^^]*\^" "%[qw]![^!]*!" +## Comments +color cyan "#[^{].*$" "#$" +color brightcyan "##[^{].*$" "##$" +## "Here" docs +color green start="<<-?'?EOT'?" end="^EOT" +## Some common markers +color brightcyan "(XXX|TODO|FIXME|\?\?\?)" diff --git a/nano/rust.nanorc b/nano/rust.nanorc new file mode 100755 index 0000000..88a0be8 --- /dev/null +++ b/nano/rust.nanorc @@ -0,0 +1,42 @@ +# Nano configuration for Rust +# Copyright 2015 The Rust Project Developers. +# +# NOTE: Rules are applied in order: later rules re-colorize matching text. + + +syntax "Rust" "\.rs" +comment "//" + +# function definition +color magenta "fn [a-z0-9_]+" + +# Reserved words +color yellow "\<(abstract|alignof|as|become|box|break|const|continue|crate|do|else|enum|extern|false|final|fn|for|if|impl|in|let|loop|macro|match|mod|move|mut|offsetof|override|priv|pub|pure|ref|return|sizeof|static|self|struct|super|true|trait|type|typeof|unsafe|unsized|use|virtual|where|while|yield)\>" + +# macros +color red "[a-z_]+!" + +# Constants +color magenta "[A-Z][A-Z_]+" + +# Traits/Enums/Structs/Types/etc. +color magenta "[A-Z][a-z]+" + +# Strings +color green "\".*\"" +color green start="\".*\\$" end=".*\"" +# NOTE: This isn't accurate but matching "#{0,} for the end of the string is too liberal +color green start="r#+\"" end="\"#+" + +# Comments +color blue "^\s*//.*" +color blue start="^\s*/\*" end="\*/" + +# Attributes +color magenta start="#!\[" end="\]" + +# Some common markers +color brightcyan "(XXX|TODO|FIXME|\?\?\?)" + +## Trailing spaces +color ,green "[[:space:]]+$" diff --git a/nano/scala.nanorc b/nano/scala.nanorc new file mode 100755 index 0000000..53fc5f7 --- /dev/null +++ b/nano/scala.nanorc @@ -0,0 +1,12 @@ +## Here is an example for Scala. +## +syntax "Scala" "\.(scala|sc|sbt)$" +color green "\<(boolean|byte|char|double|float|int|long|new|short|this|transient|void)\>" +color red "\<(match|val|var|break|case|catch|continue|default|do|else|finally|for|if|return|switch|throw|try|while)\>" +color cyan "\<(def|object|case|trait|lazy|implicit|abstract|class|extends|final|implements|import|instanceof|interface|native|package|private|protected|public|static|strictfp|super|synchronized|throws|volatile|sealed)\>" +color red ""[^"]*"" +color yellow "\<(true|false|null)\>" +color blue "^\s*//.*" +color blue start="^\s*/\*" end="\*/" +color brightblue start="/\*\*" end="\*/" +color ,green "[[:space:]]+$" diff --git a/nano/sed.nanorc b/nano/sed.nanorc new file mode 100755 index 0000000..286c8ca --- /dev/null +++ b/nano/sed.nanorc @@ -0,0 +1,9 @@ +syntax "SED" "\.sed$" +header "^#!.*bin/(env +)?sed( |$)" + +color red "[|^$.*+]" +color brightyellow "\{[0-9]+,?[0-9]*\}" +color magenta "\\." +color brightblack "(^|[[:space:]])#([^{].*)?$" +color ,green "[[:space:]]+$" +color ,red " + +| + +" diff --git a/nano/sh.nanorc b/nano/sh.nanorc new file mode 100755 index 0000000..959a1b9 --- /dev/null +++ b/nano/sh.nanorc @@ -0,0 +1,13 @@ +## Here is an example for Bourne shell scripts. +## +syntax "sh" "\.sh$" "Makefile" "\.bashrc" "bashrc" "\.bash_aliases" "bash_aliases" "\.bash_profile" "bash_profile" +icolor brightgreen "^[0-9A-Z_]+\(\)" +color green "\<(case|do|done|elif|else|esac|exit|fi|for|function|if|in|local|read|return|select|shift|then|time|until|while)\>" +color green "(\{|\}|\(|\)|\;|\]|\[|`|\\|\$|<|>|!|=|&|\|)" +color green "-[Ldefgruwx]\>" +color green "-(eq|ne|gt|lt|ge|le|s|n|z)\>" +color brightblue "\<(cat|cd|chmod|chown|cp|echo|env|export|grep|install|let|ln|make|mkdir|mv|rm|sed|set|tar|touch|umask|unset)\>" +icolor brightred "\$\{?[0-9A-Z_!@#$*?-]+\}?" +color cyan "(^|[[:space:]])#.*$" +color brightyellow ""(\\.|[^"])*"" "'(\\.|[^'])*'" +#color ,green "[[:space:]]+$" diff --git a/nano/shlike.nanorc b/nano/shlike.nanorc new file mode 100755 index 0000000..2370cbe --- /dev/null +++ b/nano/shlike.nanorc @@ -0,0 +1,12 @@ +## Here is an example for Bourne shell scripts. +## +syntax "shlike" "\.(m4|sub|guess)$" "missing$" "configure\.ac$" "config\.(charset|rpath|status)$" "configure$" +icolor brightgreen "^[0-9A-Z_]+\(\)" +color green "\<(case|do|done|elif|else|esac|exit|fi|for|function|if|in|local|read|return|select|shift|then|time|until|while)\>" +color green "(\{|\}|\(|\)|\;|\]|\[|`|\\|\$|<|>|!|=|&|\|)" +color green "-[Ldefgruwx]\>" +color green "-(eq|ne|gt|lt|ge|le|s|n|z)\>" +color brightblue "\<(cat|cd|chmod|chown|cp|echo|env|export|grep|install|let|ln|make|mkdir|mv|rm|sed|set|tar|touch|umask|unset)\>" +icolor brightred "\$\{?[0-9A-Z_!@#$*?-]+\}?" +color cyan "(^|[[:space:]])#.*$" +color brightyellow ""(\\.|[^"])*"" "'(\\.|[^'])*'" diff --git a/nano/sieve.nanorc b/nano/sieve.nanorc new file mode 100755 index 0000000..d33eb48 --- /dev/null +++ b/nano/sieve.nanorc @@ -0,0 +1,187 @@ +#syntax highlighting for the Sieve email filtering language +#based on: +# RFC's { 3894,5173,5228,5229,5230,5231,5232,5233 +# 5235,5260,5293,5435,5437,5463,5490,5703 +# 6009,6131,6134,6558,6609,7352,8579,8580 } +# vnd.dovecot { debug,execute,report } +# Spec Drafts { IETF Sieve Regex,Martin Sieve Notify +# Melnikov Sieve IMAPFlags } + +syntax Sieve "\.(siv|sieve)$" + +#-----------------------------# + +##control + #RFC 5228 (base spec) +icolor yellow "\<(stop|require)\>" + #RFC 5463 (ihave extension) +icolor yellow "\<(error)\>" + #RFC 6609 (include extension) +icolor yellow "\<(include)\>" + +#-----------------------------# + +##conditional + #RFC 5228 (base spec) +icolor brightgreen "\<(if|else|elsif)\>" + #RFC 5703 (extensions for mime part tests, iteration, extraction, replacement, and enclosure) +icolor brightgreen "\<(foreverypart)\>" + +#-----------------------------# + +##test modifiers + #RFC 5228 (base spec) +icolor brightred "\<(allof|anyof|true|false|not)\>" + +#-----------------------------# + +##tests + #RFC 5228 (base spec) +icolor brightcyan "\<(address|envelope|exists|header|size)\>" + #RFC 5173 (body extension) +icolor brightcyan "\<(body)\>" + #RFC 5183 (environment extension) +icolor brightcyan "\<(environment)\>" + #RFC 5232 (imap4flags extension) +icolor brightcyan "\<(hasflag)\>" + #RFC 5235 (spamtest and virustest extensions) +icolor brightcyan "\<(spamtest|virustest)\>" + #RFC 5260 (date and index extensions) +icolor brightcyan "\<(date|currentdate)\>" + #RFC 5437 (notification mechanism for xmpp) +icolor brightcyan "\<(notify_method_capability)\>" + #RFC 5463 (ihave extension) +icolor brightcyan "\<(ihave)\>" + #RFC 5490 (extensions for checking mailbox status and accessing mailbox metadata) +icolor brightcyan "\<(mailboxexists|metadata|metadataexists)\>" +icolor brightcyan "\<(servermetadata|servermetadataexists)\>" + #RFC 6134 (extension for externally stored lists) +icolor brightcyan "\<(valid_ext_list)\>" + #RFC 7352 (extension for detecting duplicate deliveries) +icolor brightcyan "\<(duplicate)\>" + #RFC 8579 (extension for delivering to special-use mailboxes) +icolor brightcyan "\<(specialuse_exists)\>" + +#-----------------------------# + +##comparators + #RFC 5228 (base spec) +icolor cyan "\s:(contains|is|matches|over|under)\>" + +#-----------------------------# + +##match-types + #RFC 5228 (base spec) +icolor green "\s:(localpart|domain|all)\>" + #RFC 5231 (relational extension) +icolor green "\s:(count|value)\>" + #RFC 5233 (subaddress extension) +icolor green "\s:(user|detail)\>" + #RFC 5235 (spamtest and virustest extensions) +icolor green "\s:(percent)\>" + #RFC 5260 (date and index extensions) +icolor green "\s:(zone|originalzone|index|last)\>" + #RFC 6134 (extension for externally stored lists) +icolor green "\s:(list)\>" + #Draft IETF Sieve Regex 01 (regular expression extension) +icolor green "\s:(regex|quoteregex)\>" + +#-----------------------------# + +##variables + #RFC 5229" (variables extension) +color red "\$\{.*\}" + +#-----------------------------# + +##actions + #RFC 5228 (base spec) +icolor brightblue "\<(keep|fileinto|discard|reject|redirect)\>" + #RFC 5229 (variables extension) +icolor brightblue "\<(set)\>" + #RFC 5230 (vacation extension) +icolor brightblue "\<(vacation)\>" + #RFC 5232 (imap4flags extension) +icolor brightblue "\<(setflag|addflag|removeflag)\>" + #RFC 5293 (editheader extension) +icolor brightblue "\<(addheader|deleteheader)\>" + #RFC 5429 (reject and ereject extensions) +icolor brightblue "\<(reject|ereject)\>" + #RFC 5435 (extension for notifications) +icolor brightblue "\<(notify)\>" + #RFC 5703 (extensions for mime part tests, iteration, extraction, replacement, and enclosure) +icolor brightblue "\<(break|replace|enclose|extracttext)\>" + #RFC 6558 (extension for converting messages before delivery) +icolor brightblue "\<(convert)\>" + #RFC 6609 (include extension) +icolor brightblue "\<(return)\>" + #vnd.dovecot.debug (extension for logging debug messages) +icolor brightblue "\<(debug_log)\>" + #vnd.dovecot.execute (extension for external programs) +icolor brightblue "\<(pipe|filter|execute)\>" + #vnd.dovecot.report (extension for sending abuse feedback reports) +icolor brightblue "\<(report)\>" + #Draft Martin Sieve Notify 01 (extension for providing instant notifications) [deprecated] +icolor brightblue "\<(denotify)\>" + #Draft Melnikov Sieve IMAPFlags 04 (imap flag extension) [deprecated] +icolor brightblue "\<(mark|unmark)\>" + +#-----------------------------# + +##modifiers, parameters, etc. + #RFC 5228 (base spec) +icolor magenta "\s:(comparator)\>" + #RFC 3894 (extension for copying without side effects) +icolor magenta "\s:(copy)\>" + #RFC 5173 (body extension) +icolor magenta "\s:(raw|content|text)\>" + #RFC 5229 (variables extension) +icolor magenta "\s:(length|quotewildcard)\>" +icolor magenta "\s:(upper|lower|upperfirst|lowerfirst)\>" + #RFC 5230 (vacation extension) +icolor magenta "\s:(days|subject|from|addresses|handle)\>" + #RFC 5232 (imap4flags extension) +icolor magenta "\s:(flags)\>" + #RFC 5435 (extension for notifications) +icolor magenta "\s:(from|importance|options|message)\>" + #RFC 5490 (extensions for checking mailbox status and accessing mailbox metadata) +icolor magenta "\s:(create)\>" + #RFC 5703 (extensions for mime part tests, iteration, extraction, replacement, and enclosure) +icolor magenta "\s:(name|mime|anychild|type|subtype)\>" +icolor magenta "\s:(contenttype|param|headers|first)\>" + #RFC 6009 (dsn and deliver-by extensions) +icolor magenta "\s:(notify|ret|bymode|bytrace)\>" +icolor magenta "\s:(bytimerelative|bytimeabsolute)\>" + #RFC 6131 (vacation extension seconds parameter) +icolor magenta "\s:(seconds)\>" + #RFC 6609 (include extension) +icolor magenta "\s:(once|optional|personal|global)\>" + #RFC 7352 (extension for detecting duplicate deliveries) +icolor magenta "\s:(header|uniqueid)\>" + #RFC 8579 (extension for delivering to special-use mailboxes) +icolor magenta "\s:(specialuse)\>" + #RFC 8580 (extension for file carbon copy) +icolor magenta "\s:(fcc)\>" + #vnd.dovecot.execute (extension for external programs) +icolor magenta "\s:(try|pipe|input|output)\>" + #Draft Martin Sieve Notify 01 (extension for providing instant notifications) [deprecated] +icolor magenta "\s:(method|id|low|normal|high)\>" + #Draft Melnikov Sieve IMAPFlags 04 (imap flag extension) [deprecated] +icolor magenta "\s:(globalflags)(_plus|_minus)?\>" + +#-----------------------------# + +##number (incl. proceeding K, M, or G) +icolor brightmagenta "\<[0-9]+[KMG]?\>" + +#-----------------------------# + +##comment +color blue "\#.*" + +#-----------------------------# + +##string +color brightyellow start="\"" end="\"" +color brightyellow start="\/\*" end="\*\/" +icolor brightyellow start="text\:.*" end="^.$" diff --git a/nano/sls.nanorc b/nano/sls.nanorc new file mode 100755 index 0000000..c8affff --- /dev/null +++ b/nano/sls.nanorc @@ -0,0 +1,29 @@ +## SaltStack files (*.sls) +## + +syntax "Salt" "\.sls$" + +# Anything ending in a colon (:), including things that start with a dash (-) +color blue "^[^ -].*:$" +color blue ".*:" +# Except for salt:// URLs +color white "salt:" + +# Numbers, etc +color red "/*[0-9]/*" +color red "\<(True|False)\>" + +# Anything between two single quotes +color green ""(\\.|[^"])*"|'(\\.|[^'])*'" + +# Matching keywords +color yellow "\<(grain|grains|compound|pcre|grain_pcre|list|pillar)\>" + +# Comments +color brightblack "^#.*" + +# Logic keywords +color magenta "\<(if|elif|else|or|not|and|endif|end)\>" + +## Trailing spaces +color ,green "[[:space:]]+$" diff --git a/nano/softcam.nanorc b/nano/softcam.nanorc new file mode 100755 index 0000000..c1aad17 --- /dev/null +++ b/nano/softcam.nanorc @@ -0,0 +1,10 @@ +syntax "softcam" "(S|s)oft(c|C)am.(K|k)ey$" +color yellow "(I|S|V|N|W|F)\ [0-9a-zA-Z]*\ 0[0-9A-F]" +color brightyellow "(I|S|V|N|W|F|B)\ [0-9a-zA-Z]*\ (M|X|E|N)(1|2)" +color brightgreen "B\ [0-9]*\:[0-9]*|:(H|V|L)" +color magenta "(05(0|1)(1|3|5))" +color red "(4(0|1)0(1|2))" +color brightred "4(8|9)01" +color brightblue "(2111|7101|a(4|5)01)" +color cyan "\;.*$" +color green "#.*$" diff --git a/nano/sources_list.nanorc b/nano/sources_list.nanorc new file mode 100755 index 0000000..e10235d --- /dev/null +++ b/nano/sources_list.nanorc @@ -0,0 +1,18 @@ +## derived form http://milianw.de/code-snippets + +## syntax highlighting for /etc/apt/sources.list +syntax "apt/sources.list" "sources\.list(\.old|~)?$" +# component +color brightmagenta "^deb(-src)? ((http|file|ftp):/[^ ]+|cdrom:\[[^\]]+\]/|cdrom:\[[a-zA-Z0-9\._-\(\) ]+\]/) [^ ]+ .+$" +# distribution +color brightred "^deb(-src)? ((http|file|ftp):/[^ ]+|cdrom:\[[^\]]+\]/|cdrom:\[[a-zA-Z0-9\._-\(\) ]+\]/) [^ ]+" +# URI +color brightgreen "(http|file|ftp):/[^ ]+" +# cdroms +# [^\]] does not work… +color brightgreen "cdrom:\[[a-zA-Z0-9\._-\(\) ]+\]/" +# deb / deb-src +color cyan "^deb" +color brightblue "^deb-src" +# comments +color brightyellow "#.*" diff --git a/nano/sparql.nanorc b/nano/sparql.nanorc new file mode 100755 index 0000000..932b97e --- /dev/null +++ b/nano/sparql.nanorc @@ -0,0 +1,49 @@ +## SPARQL 1.1 and SPARQL 1.1 UPDATE +# +syntax "SPARQL" ".*\.(rq|sparql)$" + +icolor brightcyan "\<(ADD|AS|ASK)\>" +icolor brightcyan "\<(BIND|BY)\>" +icolor brightcyan "\<(CLEAR|CONSTRUCT|CREATE)\>" +icolor brightcyan "\<(DATA|DEFAULT|DELETE|DESCRIBE|DISTINCT|DROP)\>" +icolor brightcyan "\<(FILTER|FROM)\>" +icolor brightcyan "\<(GRAPH|GROUP)\>" +icolor brightcyan "\<(HAVING)\>" +icolor brightcyan "\<(INSERT)\>" +icolor brightcyan "\<(LIMIT|LOAD)\>" +icolor brightcyan "\<(MINUS|MOVE)\>" +icolor brightcyan "\<(NAMED|NOT)\>" +icolor brightcyan "\<(OFFSET|OPTIONAL|ORDER)\>" +icolor brightcyan "\<(PREFIX)\>" +icolor brightcyan "\<(REDUCED)\>" +icolor brightcyan "\<(SELECT|SERVICE|SILENT)\>" +icolor brightcyan "\<(TO)\>" +icolor brightcyan "\<(UPDATE|USING)\>" +icolor brightcyan "\<(VALUES)\>" +icolor brightcyan "\<(WHERE|WITH)\>" + +# functions +icolor brightmagenta "\<(ABS|AVG)\>" +icolor brightmagenta "\<(BNODE|BOUND)\>" +icolor brightmagenta "\<(CEIL|COALESCE|CONCAT|CONTAINS|COUNT)\>" +icolor brightmagenta "\<(DATATYPE|DAY)\>" +icolor brightmagenta "\<(ENCODE_FOR_URI|EXISTS)\>" +icolor brightmagenta "\<(FLOOR)\>" +icolor brightmagenta "\<(GROUP_CONCAT)\>" +icolor brightmagenta "\<(HOURS)\>" +icolor brightmagenta "\<(IF|IN|IRI|ISBLANK|ISIRI|ISLITERAL|ISNUMERIC)\>" +icolor brightmagenta "\<(LANG|LANGMATCHES|LCASE)\>" +icolor brightmagenta "\<(MAX|MD5|MIN|MINUTES|MONTH)\>" +icolor brightmagenta "\<(NOW)\>" +icolor brightmagenta "\<(RAND|REGEX|REPLACE|ROUND)\>" +icolor brightmagenta "\<(SAMETERM|SECONDS|SHA1|SHA256|SHA384|SHA512|STR|STRAFTER|STRBEFORE|STRDT|STRLANG|STRLEN|STRSTARTS|STRUUID|SUBSTR|SUM)\>" +icolor brightmagenta "\<(TIMEZONE|TZ)\>" +icolor brightmagenta "\<(UCASE|UUID)\>" +icolor brightmagenta "\<(YEAR)\>" + +# variables, IRI +# +icolor cyan "\?\w+" +icolor brightgreen "<.+:[^ >]+>" +icolor green " \w+:" + diff --git a/nano/sql.nanorc b/nano/sql.nanorc new file mode 100755 index 0000000..1ebd574 --- /dev/null +++ b/nano/sql.nanorc @@ -0,0 +1,34 @@ +syntax "SQL" "\.sql$" "sqliterc$" + +icolor cyan "\<(ALL|ASC|AS|ALTER|AND|ADD|AUTO_INCREMENT)\>" +icolor cyan "\<(BETWEEN|BINARY|BOTH|BY|BOOLEAN)\>" +icolor cyan "\<(CHANGE|CHECK|COLUMNS|COLUMN|CROSS|CREATE)\>" +icolor cyan "\<(DATABASES|DATABASE|DATA|DELAYED|DESCRIBE|DESC|DISTINCT|DELETE|DROP|DEFAULT)\>" +icolor cyan "\<(ENCLOSED|ESCAPED|EXISTS|EXPLAIN)\>" +icolor cyan "\<(FIELDS|FIELD|FLUSH|FOR|FOREIGN|FUNCTION|FROM)\>" +icolor cyan "\<(GROUP|GRANT|HAVING)\>" +icolor cyan "\<(IGNORE|INDEX|INFILE|INSERT|INNER|INTO|IDENTIFIED|IN|IS|IF)\>" +icolor cyan "\<(JOIN|KEYS|KILL|KEY)\>" +icolor cyan "\<(LEADING|LIKE|LIMIT|LINES|LOAD|LOCAL|LOCK|LOW_PRIORITY|LEFT|LANGUAGE)\>" +icolor cyan "\<(MODIFY|NATURAL|NOT|NULL|NEXTVAL)\>" +icolor cyan "\<(OPTIMIZE|OPTION|OPTIONALLY|ORDER|OUTFILE|OR|OUTER|ON)\>" +icolor cyan "\<(PROCEDURE|PROCEDURAL|PRIMARY)\>" +icolor cyan "\<(READ|REFERENCES|REGEXP|RENAME|REPLACE|RETURN|REVOKE|RLIKE|RIGHT)\>" +icolor cyan "\<(SHOW|SONAME|STATUS|STRAIGHT_JOIN|SELECT|SETVAL|SET)\>" +icolor cyan "\<(TABLES|TERMINATED|TO|TRAILING|TRUNCATE|TABLE|TEMPORARY|TRIGGER|TRUSTED)\>" +icolor cyan "\<(UNIQUE|UNLOCK|USE|USING|UPDATE|VALUES|VARIABLES|VIEW)\>" +icolor cyan "\<(WITH|WRITE|WHERE|ZEROFILL|TYPE|XOR)\>" +color green "\<(VARCHAR|TINYINT|TEXT|DATE|SMALLINT|MEDIUMINT|INT|INTEGER|BIGINT|FLOAT|DOUBLE|DECIMAL|DATETIME|TIMESTAMP|TIME|YEAR|UNSIGNED|CHAR|TINYBLOB|TINYTEXT|BLOB|MEDIUMBLOB|MEDIUMTEXT|LONGBLOB|LONGTEXT|ENUM|BOOL|BINARY|VARBINARY)\>" + +# SQLite meta commands +icolor cyan "\.\<(databases|dump|echo|exit|explain|header(s)?|help)\>" +icolor cyan "\.\<(import|indices|mode|nullvalue|output|prompt|quit|read)\>" +icolor cyan "\.\<(schema|separator|show|tables|timeout|width)\>" +color brightcyan "\<(ON|OFF)\>" + +color blue "\<([0-9]+)\>" +color yellow ""(\\.|[^"])*"|'(\\.|[^'])*'" +color yellow "`(\\.|[^\\`])*`" +color brightblack "\-\-.*$" +color ,green "[[:space:]]+$" +color ,red " + +| + +" diff --git a/nano/strips.nanorc b/nano/strips.nanorc new file mode 100755 index 0000000..9a679ae --- /dev/null +++ b/nano/strips.nanorc @@ -0,0 +1,40 @@ +## (c) Lilian Besson, 06/2013 +## For the .strips files, describing STRIPS instance. +## More details : https://bitbucket.org/lbesson/stageM1/ + +syntax "strips" "\.strips$" + +# Comments +color brightblue "//.*$" + +# Initial State +icolor yellow "initial.*:.*$" + +# Goal State +icolor brightyellow "goal.*:.*$" + +# Actions +icolor brightgreen "action.*:.*$" + +# Preconditions +icolor yellow "pre.*:" + +# Postconditions +icolor brightyellow "post.*:" + +# Predicate +color brightwhite "[A-Z][A-Za-z]*\(" + +# !Predicate +color brightred "![A-Z][A-Za-z]*\(" + +# Parenthesizes +#color brightred start="\(" end="\)" +color red "\(" +color red "\)" +## color brightred "\([^\)].*$" + +color white ", " + +# Comments +color brightblue "//.*$" diff --git a/nano/svn.nanorc b/nano/svn.nanorc new file mode 100755 index 0000000..c2f89ab --- /dev/null +++ b/nano/svn.nanorc @@ -0,0 +1,14 @@ +syntax "svn-commit" "svn-commit(\.[[:digit:]]+)?\.tmp$" + +# commit message +color yellow ".*" + +# ignore after line EDITOR_EOF_PREFIX (see svn/util.c) +color brightblack "^--.+--$" + +# files changes +color white "^[ADM_](M|[[:space:]])[[:space:]](\+|[[:space:]])[[:space:]].*" +color red "^D[[:space:]]{4}" +color green "^[M_](M|[[:space:]])[[:space:]]{3}" +color brightgreen "^A(M|[[:space:]])[[:space:]]{3}" +color brightblue "^A(M|[[:space:]])[[:space:]]\+[[:space:]]" diff --git a/nano/swift.nanorc b/nano/swift.nanorc new file mode 100755 index 0000000..636441a --- /dev/null +++ b/nano/swift.nanorc @@ -0,0 +1,64 @@ +############################################################################## +# Swift syntax highlighting for Nano. v.1.1 +############################################################################## + +syntax "Swift" "\.swift$" + +# Default +color white ".+" + +# Operators +color yellow "[.:;,+*|=!?\%]" "<" ">" "/" "-" "&" +color brightyellow "[!]" + +# Statements +color magenta "\<(class|import|let|var|struct|enum|func|if|else|switch|case|default|for|in|static|private|public|throws)\>" +color magenta "\<(lazy|get|set|self|willSet|didSet|override|super|convenience|weak|strong|mutating|return|guard)\>" +color magenta "\<(protocol|typealias|prefix|postfix|operator|extension|internal|external|unowned)\>" + +# Keywords +color cyan "\<(print)\>" +color magenta "\<(init)\>" + +# Attribute +color red "(@+[a-zA-Z]+)" + +# Numbers / Decimal Literal +color blue "\<([0-9]+)\>" +# Unicode Literal "U+" +color blue "\<(U\++[0-9A-Z]+)\>" +# Binary Literal "0b" +color blue "\<(0b+[0-1]+)\>" +# Octal Literal "0o" +color blue "\<(0o+[0-7]+)\>" +# Hexadecimal Literal "0x" +color blue "\<(0x+[0-9A-Fa-f]+)\>" + +# Standard Types +color brightmagenta "\<((U)?Int(8|16|32|64))\>" +color brightmagenta "\<(true|false|nil)\>" +color brightmagenta "\<(UInt|Int|Double|String|Float|Bool|Dictionary|Array|Character|Range|Set|Bit|RawByte|Slice)\>" +color brightmagenta "\<(UnicodeScalar|UnsafePointer|UnsafeMutablePointer)\>" +color magenta "\<(AnyObject)\>" + +# Standard Type Aliases and Protocols +color magenta "\<(AnyObject|AnyClass|GeneratorType|AnyGenerator|Element|Optional|Mirror)\>" +color magenta "\<(UnicodeScalarType|IntMax|UIntMax|Void|Any|Comparable|Equatable|Hashable|SequenceType)\>" + +# Standard Libraries +color cyan "\<(Foundation|Glibc|Darwin|XCTest)\>" + +# Text +color red ""[^"]*"" + +# Variable in Text +color white start="\\\(" end="\)" + +# Comments +color green "^\s*//.*" +color brightgreen "^\s*///.*" +color green start="/\*\*" end="\*/" +color green "[/**]" + +# Trailing whitespace +color ,green "[[:space:]]+$" diff --git a/nano/systemd.nanorc b/nano/systemd.nanorc new file mode 100755 index 0000000..0a2787a --- /dev/null +++ b/nano/systemd.nanorc @@ -0,0 +1,12 @@ +syntax "Systemd" "\.(service|socket|timer)$" +header "^\[Unit\]$" + +color cyan "^(Accept|After|Alias|AllowIsolate|Also|AmbientCapabilities|ANSI_COLOR|_AUDIT_LOGINUID|_AUDIT_SESSION|Backlog|Before|BindIPv6Only|BindsTo|BindToDevice|BlockIOReadBandwidth|BlockIOWeight|BlockIOWriteBandwidth|_BOOT_ID|Broadcast|BUG_REPORT_URL|BusName|Capabilities|CapabilityBoundingSet|CHASSIS|cipher|class|_CMDLINE|CODE_FILE|CODE_FUNC|CODE_LINE|_COMM|Compress|ConditionACPower|ConditionCapability|ConditionDirectoryNotEmpty|ConditionFileIsExecutable|ConditionFileNotEmpty|ConditionHost|ConditionKernelCommandLine|ConditionNull|ConditionPathExists|ConditionPathExistsGlob|ConditionPathIsDirectory|ConditionPathIsMountPoint|ConditionPathIsReadWrite|ConditionPathIsSymbolicLink|ConditionSecurity|ConditionVirtualization|Conflicts|ControlGroup|ControlGroupAttribute|ControlGroupModify|ControlGroupPersistent|controllers|Controllers|CPE_NAME|CPUAffinity|CPUSchedulingPolicy|CPUSchedulingPriority|CPUSchedulingResetOnFork|CPUShares|CrashChVT|CrashShell|__CURSOR|debug|DefaultControllers|DefaultDependencies|DefaultLimitAS|DefaultLimitCORE|DefaultLimitCPU|DefaultLimitDATA|DefaultLimitFSIZE|DefaultLimitLOCKS|DefaultLimitMEMLOCK|DefaultLimitMSGQUEUE|DefaultLimitNICE|DefaultLimitNOFILE|DefaultLimitNPROC|DefaultLimitRSS|DefaultLimitRTPRIO|DefaultLimitRTTIME|DefaultLimitSIGPENDING|DefaultLimitSTACK|DefaultStandardError|DefaultStandardOutput|Description|DeviceAllow|DeviceDeny|DirectoryMode|DirectoryNotEmpty|Documentation|DumpCore|entropy|Environment|EnvironmentFile|ERRNO|event_timeout|_EXE|ExecReload|ExecStart|ExecStartPost|ExecStartPre|ExecStop|ExecStopPost|ExecStopPre|filter|FONT|FONT_MAP|FONT_UNIMAP|ForwardToConsole|ForwardToKMsg|ForwardToSyslog|FreeBind|freq|FsckPassNo|fstab|_GID|Group|GuessMainPID|HandleHibernateKey|HandleLidSwitch|HandlePowerKey|HandleSuspendKey|hash|HibernateKeyIgnoreInhibited|HOME_URL|_HOSTNAME|ICON_NAME|ID|IdleAction|IdleActionSec|ID_LIKE|ID_MODEL|ID_MODEL_FROM_DATABASE|IgnoreOnIsolate|IgnoreOnSnapshot|IgnoreSIGPIPE|InaccessibleDirectories|InhibitDelayMaxSec|init|IOSchedulingClass|IOSchedulingPriority|IPTOS|IPTTL|JobTimeoutSec|JoinControllers|KeepAlive|KEYMAP|KEYMAP_TOGGLE|KillExcludeUsers|KillMode|KillOnlyUsers|KillSignal|KillUserProcesses|LidSwitchIgnoreInhibited|LimitAS|LimitCORE|LimitCPU|LimitDATA|LimitFSIZE|LimitLOCKS|LimitMEMLOCK|LimitMSGQUEUE|LimitNICE|LimitNOFILE|LimitNPROC|LimitRSS|LimitRTPRIO|LimitRTTIME|LimitSIGPENDING|LimitSTACK|link_priority|valueListenDatagram|ListenFIFO|ListenMessageQueue|ListenNetlink|ListenSequentialPacket|ListenSpecial|ListenStream|LogColor|LogLevel|LogLocation|LogTarget|luks|_MACHINE_ID|MakeDirectory|Mark|MaxConnections|MaxFileSec|MaxLevelConsole|MaxLevelKMsg|MaxLevelStore|MaxLevelSyslog|MaxRetentionSec|MemoryLimit|MemorySoftLimit|MESSAGE|MESSAGE_ID|MessageQueueMaxMessages|MessageQueueMessageSize|__MONOTONIC_TIMESTAMP|MountFlags|NAME|NAutoVTs|Nice|NonBlocking|NoNewPrivileges|NotifyAccess|OnActiveSec|OnBootSec|OnCalendar|OnFailure|OnFailureIsolate|OnStartupSec|OnUnitActiveSec|OnUnitInactiveSec|OOMScoreAdjust|Options|output|PAMName|PartOf|PassCredentials|PassSecurity|PathChanged|PathExists|PathExistsGlob|PathModified|PermissionsStartOnly|_PID|PIDFile|PipeSize|PowerKeyIgnoreInhibited|PRETTY_HOSTNAME|PRETTY_NAME|Priority|PRIORITY|PrivateDevices|PrivateNetwork|PrivateTmp|PropagatesReloadTo|ProtectControlGroups|ProtectHome|ProtectKernelModules|ProtectKernelTunables|ProtectSystem|pss|RateLimitBurst|RateLimitInterval|ReadOnlyDirectories|ReadWriteDirectories|__REALTIME_TIMESTAMP|ReceiveBuffer|RefuseManualStart|RefuseManualStop|rel|ReloadPropagatedFrom|RemainAfterExit|RestrictAddressFamilies|RestrictNamespaces|RestrictRealtime|RequiredBy|Requires|RequiresMountsFor|RequiresOverridable|Requisite|RequisiteOverridable|ReserveVT|ResetControllers|Restart|RestartPreventExitStatus|RestartSec|RootDirectory|RootDirectoryStartOnly|RuntimeKeepFree|RuntimeMaxFileSize|RuntimeMaxUse|RuntimeWatchdogSec|samples|scale_x|scale_y|Seal|SecureBits|_SELINUX_CONTEXT|SendBuffer|SendSIGKILL|Service|ShowStatus|ShutdownWatchdogSec|size|SmackLabel|SmackLabelIPIn|SmackLabelIPOut|SocketMode|Sockets|SourcePath|_SOURCE_REALTIME_TIMESTAMP|SplitMode|StandardError|StandardInput|StandardOutput|StartLimitAction|StartLimitBurst|StartLimitInterval|static_node|StopWhenUnneeded|Storage|string_escape|none|replaceSuccessExitStatus|SupplementaryGroups|SUPPORT_URL|SuspendKeyIgnoreInhibited|SyslogFacility|SYSLOG_FACILITY|SyslogIdentifier|SYSLOG_IDENTIFIER|SyslogLevel|SyslogLevelPrefix|SYSLOG_PID|SystemCallArchitectures|SystemCallFilter|SYSTEMD_ALIAS|_SYSTEMD_CGROUP|_SYSTEMD_OWNER_UID|SYSTEMD_READY|_SYSTEMD_SESSION|_SYSTEMD_UNIT|_SYSTEMD_USER_UNIT|SYSTEMD_WANTS|SystemKeepFree|SystemMaxFileSize|SystemMaxUse|SysVStartPriority|TCPCongestion|TCPWrapName|timeout|TimeoutSec|TimeoutStartSec|TimeoutStopSec|TimerSlackNSec|Transparent|_TRANSPORT|tries|TTYPath|TTYReset|TTYVHangup|TTYVTDisallocate|Type|_UID|UMask|Unit|User|UtmpIdentifier|VERSION|VERSION_ID|WantedBy|Wants|WatchdogSec|What|Where|WorkingDirectory)=" +color green "^\.include\>" +color red "=" +color brightmagenta "^\[(Unit|Install|Service|Socket)\]" +color brightyellow "\$MAINPID" +color brightcyan "\<(true|false)\>" +color brightblue "(^|[[:space:]])#([^{].*)?$" +color ,green "[[:space:]]+$" +color ,red " + +| + +" diff --git a/nano/tab.nanorc b/nano/tab.nanorc new file mode 100755 index 0000000..68ae7b9 --- /dev/null +++ b/nano/tab.nanorc @@ -0,0 +1,12 @@ +### all *tab files ( e.g. fstab, crontab, inittab ) +syntax "fstab" "(\.|/|)tab$" +color magenta "\<(none)\>.*$" "\<(wait)\>" "\<(respawn)\>" +color red "/dev/hd.*$" "\<(ctrlaltdel)\>" "\<(initdefault)\>" +color blue "/dev/sr.*$" "/dev/cd.*$" "\/sbin.*$" +color cyan "/dev/sd.*$" +color brightcyan "^.*(nfs|smbfs).*$" +color yellow "/dev/fd.*$" +color red "root" +color brightwhite "[0-9]" +color green "#.*$" + diff --git a/nano/tcl.nanorc b/nano/tcl.nanorc new file mode 100755 index 0000000..ad3401f --- /dev/null +++ b/nano/tcl.nanorc @@ -0,0 +1,16 @@ +syntax "tcl" "\.tcl$" + +## Standard Tcl [info commands] +color green "\<(after|append|array|auto_execok|auto_import|auto_load|auto_load_index|auto_qualify|binary|break|case|catch|cd|clock|close|concat|continue|encoding|eof|error|eval|exec|exit|expr|fblocked|fconfigure|fcopy|file|fileevent|flush|for|foreach|format|gets|glob|global|history|if|incr|info|interp|join|lappend|lindex|linsert|list|llength|load|lrange|lreplace|lsearch|lset|lsort|namespace|open|package|pid|puts|pwd|read|regexp|regsub|rename|return|scan|seek|set|socket|source|split|string|subst|switch|tclLog|tell|time|trace|unknown|unset|update|uplevel|upvar|variable|vwait|while)\>" +## Basic Tcl sub commands. +color green "\<(array anymore|array donesearch|array exists|array get|array names|array nextelement|array set|array size|array startsearch|array statistics|array unset)\>" +color green "\<(string bytelength|string compare|string equal|string first|string index|string is|string last|string length|string map|string match|string range|string repeat|string replace|string to|string tolower|string totitle|string toupper|string trim|string trimleft|string trimright|string will|string wordend|string wordstart)\>" +## Extended TclX [info commands] +color green "\<(alarm|auto_load_pkg|bsearch|catclose|catgets|catopen|ccollate|cconcat|cequal|chgrp|chmod|chown|chroot|cindex|clength|cmdtrace|commandloop|crange|csubstr|ctoken|ctype|dup|echo|execl|fcntl|flock|fork|fstat|ftruncate|funlock|host_info|id|infox|keyldel|keylget|keylkeys|keylset|kill|lassign|lcontain|lempty|lgets|link|lmatch|loadlibindex|loop|lvarcat|lvarpop|lvarpush|max|min|nice|pipe|profile|random|readdir|replicate|scancontext|scanfile|scanmatch|select|server_accept|server_create|signal|sleep|sync|system|tclx_findinit|tclx_fork|tclx_load_tndxs|tclx_sleep|tclx_system|tclx_wait|times|translit|try_eval|umask|wait)\>" +## Syntax. +color brightblue "proc[[:space:]]" "(\{|\})" +color green "(\(|\)|\;|`|\\|\$|<|>|!|=|&|\|)" +color brightyellow ""(\\.|[^"])*"" "'(\\.|[^'])*'" +icolor brightred "\$\{?[0-9A-Z_!@#$*?-]+\}?" +color ,green "[[:space:]]+$" +color ,magenta "^[[:space:]]*#.*" diff --git a/nano/tex.nanorc b/nano/tex.nanorc new file mode 100755 index 0000000..76cc469 --- /dev/null +++ b/nano/tex.nanorc @@ -0,0 +1,8 @@ +## Here is a short example for TeX files. +## +syntax "tex" "\.tex$" "bib" "\.bib$" "cls" "\.cls$" +color yellow "\$[^$]*\$" +icolor green "\\.|\\[A-Z]*" +color magenta "[{}]" +color blue "%.*" +color blue start="\\begin\{comment\}" end="\\end\{comment\}" diff --git a/nano/toml.nanorc b/nano/toml.nanorc new file mode 100755 index 0000000..3bafa74 --- /dev/null +++ b/nano/toml.nanorc @@ -0,0 +1,54 @@ +syntax "toml" "\.toml$" +comment "#" + +# Booleans +color magenta "true|false" + +# Numbers +color green "[+-]?[[:space:]]*[0-9]+(\.[0-9]+)?([Ee][+-]?[0-9]+)?" +color green "[0-9]+(_[0-9]+)*" + +# Tables / unwrapped keys +color brightgreen "[a-zA-Z0-9_]*(\.[a-zA-Z0-9_]+)*" + +# Invalid Table names +color ,red "^[[:space:]]*\[\]" +color ,red "^[[:space:]]*\[[a-zA-Z0-9_]\.\]" +color ,red "^[[:space:]]*\[.*\.\..*\]" +color ,red "^[[:space:]]*\[\..*?\]" + +# Strings +color brightyellow ""(\.|[^"])*"" "'(\.|[^'])*'" +color yellow start="\"\"\"" end="\"\"\"" + +# Comments +color brightblue "#.*" + +# Keyless value +color ,red "^[[:space:]]*=.*" + +# Trailing whitespace +color ,green "[[:space:]]+$" + + +# MIT License + +# Copyright (c) 2017 Uninteresting Account + +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: + +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. + +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. diff --git a/nano/ts.nanorc b/nano/ts.nanorc new file mode 100755 index 0000000..b504c1e --- /dev/null +++ b/nano/ts.nanorc @@ -0,0 +1,47 @@ +syntax "typescript" "\.(ts)$" +header "^#!.*\/(env +)ts-node" + +## Default +color white "^.+$" + +## Decimal, octal and hexadecimal numbers +color yellow "\<[-+]?([1-9][0-9]*|0[0-7]*|0x[0-9a-fA-F]+)([uU][lL]?|[lL][uU]?)?\>" + +## Floating point number with at least one digit before decimal point +color yellow "\<[-+]?([0-9]+\.[0-9]*|[0-9]*\.[0-9]+)([EePp][+-]?[0-9]+)?[fFlL]?" +color yellow "\<[-+]?([0-9]+[EePp][+-]?[0-9]+)[fFlL]?" + +## Keywords +color green "\<(as|abstract|asserts|boolean|break|byte|case|catch)\>" +color green "\<(class|const|continue|debugger|default|delete|readonly)\>" +color green "\<(do|else|enum|export|extends|finally|final|for)\>" +color green "\<(from|function|goto|if|implements|import|instanceof)\>" +color green "\<(var|interface|int|in|is|infer|let|new|package|private)\>" +color green "\<(protected|public|return|static|super|switch)\>" +color green "\<(this|throw|try|typeof|type)\>" +color green "\<(void|while|with|yield)\>" +color green "\<(async|await)\>" +color green "\<(set|get)\>" +color green "\<(module|namespace)\>" +color green "\<(declare)\>" + +## Type specifiers +color red "\<(Array|Boolean|Date|Enumerator|Error|Function)\>" +color red "\<(Number|Object|RegExp|String)\>" +color red "\<(true|false)\>" + +## String +color brightyellow "L?\"(\\"|[^"])*\"" +color brightyellow "L?'(\'|[^'])*'" +color brightcyan "L?`(\`|[^`])*`" +color brightwhite,blue start="\$\{" end="\}" + +## Escapes +color red "\\[0-7][0-7]?[0-7]?|\\x[0-9a-fA-F]+|\\[bfnrt'"\?\\]" + +## Comments +color magenta start="/\*" end="\*/" +color magenta "^\s*//.*$" + +## Trailing whitespace +color ,green "[[:space:]]+$" diff --git a/nano/twig.nanorc b/nano/twig.nanorc new file mode 120000 index 0000000..c18f7cb --- /dev/null +++ b/nano/twig.nanorc @@ -0,0 +1 @@ +html.nanorc \ No newline at end of file diff --git a/nano/urls.nanorc b/nano/urls.nanorc new file mode 100755 index 0000000..33d96b6 --- /dev/null +++ b/nano/urls.nanorc @@ -0,0 +1,18 @@ +############################################################################## +# +# Syntax highlighting for HTTP codes +# +# Author: Josef 'Jupp' Schugt, jupp(a)rubyforge.org +# License: GPL 2 or later +# +# Version: 2004-02-25 +# +############################################################################## + +syntax "urls" +color brightmagenta "^.*$" +color cyan "^(1[0-9][0-9]|20[256]|30[45]).*$" +color green "^20[03].*$" +color brightyellow "^(201|30[0-37]).*$" +color brightred "^(204|[45][0-9][0-9]|666).*$" + diff --git a/nano/vala.nanorc b/nano/vala.nanorc new file mode 100755 index 0000000..0864cf1 --- /dev/null +++ b/nano/vala.nanorc @@ -0,0 +1,18 @@ +syntax "Vala" "\.vala$" + +color green "\<(float|double|bool|char|int|uint|short|long|void|(un)?signed)\>" +color brightblue "[A-Za-z_][A-Za-z0-9_]*[[:space:]]*[()]" +color cyan "\<(for|if|while|do|else|case|default|switch|try|throw|catch)\>" +color cyan "\<(inline|typedef|struct|enum|union|extern|static|const)\>" +color cyan "\<(operator|new|delete|return|null)\>" +color cyan "\<(class|override|private|public|signal|this|weak)\>" +color brightred "\<(goto|break|continue)\>" +color brightcyan "\<(true|false)\>" +color blue "\<([0-9]+)\>" +color red "[-+/*=<>?:!~%&|]" "->" +color yellow ""(\\.|[^"])*"|'(\\.|[^'])*'" +color brightblack "(^|[[:space:]])//.*" +color brightblack start="^\s*/\*" end="\*/" +color brightwhite,cyan "TODO:?" +color ,green "[[:space:]]+$" +color ,red " + +| + +" diff --git a/nano/verilog.nanorc b/nano/verilog.nanorc new file mode 100755 index 0000000..b414308 --- /dev/null +++ b/nano/verilog.nanorc @@ -0,0 +1,84 @@ +## (System)Verilog syntax highlighting. + +# See http://savannah.gnu.org/patch/?9356 +# From bc2635d9c8dcf6a71e834582501546fac6bdbfff Mon Sep 17 00:00:00 2001 +# From: Ben Rosser +# Date: Tue, 23 May 2017 17:43:15 -0400 +# Subject: [PATCH] Add Verilog nanorc file for syntax highlighting + +# This adds a verilog.nanorc file for syntax highlighting of Verilog +# and SystemVerilog code. It is based off of the nanorc files for +# Python and C. + +# All keywords in both Verilog (*.v, *.vh) and SystemVerilog (*.sv, +# *.svh) are listed. Compiler directives (commands beginning with a +# backtick) and builtin functions are also colorized. + +# Possibly the color scheme could use some work, but this is at least +# a starting point. I based verilog.nanorc off of c.nanorc and +# python.nanorc. + +syntax "verilog" "\.(v|vh|sv|svh)$" + +# I don't think we want this. +#color brightred "\<[A-Z_][0-9A-Z_]+\>" + +# Module, package, etc. definitions: colorize their names. +# (I'm not sure if brightred is a good color). +icolor brightred "(module|package|task|interface|program|class) [0-9A-Z_]+" +icolor brightred "function [0-9A-Z_]+ [0-9A-Z_]+" + +# Verilog keywords, taken from http://svref.renerta.com/sv00003.htm. +color green "\<(always|and|assign|automatic|begin|buf|bufif0|bufif1|case|casex|casez|cell|class|cmos|config)\>" +color green "\<(deassign|default|defparam|design|disable|edge|else|end|endcase|endconfig|endfunction|endgenerate)\>" +color green "\<(endmodule|endprimitive|endspecify|endtable|endtask|event|for|force|forever|fork|function|generate)\>" +color green "\<(genvar|highz0|highz1|if|iff|ifnone|incdir|include|initial|inout|input|instance|integer|join)\>" +color green "\<(large|liblist|library|localparam|macromodule|medium|module|nand|negedge|nmos|nor|noshowcancelled)\>" +color green "\<(not|notif0|notif1|null|or|output|parameter|pmos|posedge|primitive|pull0|pull1|pulldown|pullup)\>" +color green "\<(pulsestyle_onevent|pulsestyle_ondetect|rcmos|real|realtime|reg|release|repeat|rnmos|rpmos|rtran)\>" +color green "\<(rtranif0|rtranif1|scalared|showcancelled|signed|small|specify|specparam|strong0|strong1|supply0)\>" +color green "\<(supply1|table|task|time|tran|tranif0|tranif1|tri|tri0|tri1|triand|trior|trireg|unsigned|use|uwire)\>" +color green "\<(vectored|wait|wand|weak0|weak1|while|wire|wor|xnor|xor)\>" + +# System Verilog keywords, taken from same source. +color green "\<(alias|always_comb|always_ff|always_latch|assert|assume|before|bind|bins|binsof|bit|break|byte)\>" +color green "\<(chandle|clocking|const|constraint|context|continue|cover|covergroup|coverpoint|cross|dist|do)\>" +color green "\<(endclass|endclocking|endgroup|endinterface|endpackage|endprogram|endproperty|endsequence|enum)\>" +color green "\<(expect|export|extends|extern|final|first_match|foreach|forkjoin|ignore_bins|illegal_bins|import)\>" +color green "\<(inside|int|interface|intersect|join_any|join_none|local|logic|longint|matches|modport|new|package)\>" +color green "\<(packed|priority|program|property|protected|pure|rand|randc|randcase|randsequence|ref|return)\>" +color green "\<(sequence|shortint|shortreal|solve|static|string|struct|super|tagged|this|throughout|timeprecision)\>" +color green "\<(timeunit|type|typedef|union|unique|var|virtual|void|wait_order|wildcard|with|within)\>" + +# We need to go through these and decide if everything should be the same color, and remove extra things from C. +# I don't think this is wanted. +#color green "\<((s?size)|((u_?)?int(8|16|32|64|ptr)))_t\>" + +# Builtin function names (e.g. $display). +icolor cyan "\$[0-9A-Z_]+" + +# Macros. Here are some of the standard ones, as per http://verilog.renerta.com/source/vrg00008.htm. +#color cyan "^[[:space:]]*`[[:space:]]*(define|include(_next)?|timescale|(un|ifn?)def|endif|el(sif|se)|if|resetall)" +#color cyan "^[[:space:]]*`[[:space:]]*(celldefine|endcelldefine|default_nettype|unconnected_drive|nounconnected_drive)" +# This isn't complete and it may be better to just colorize `(string), like so: +icolor cyan "^[[:space:]]*`[0-9A-Z_]+" + +# I'm not sure what this line does... it was in c.nanorc. +#color brightmagenta "'([^'\]|(\\["'abfnrtv\\]))'" "'\\(([0-3]?[0-7]{1,2}))'" "'\\x[0-9A-Fa-f]{1,2}'" + +# Strings. In general you will want your strings and comments to come last, +# because highlighting rules are applied in the order they are read in. +color brightyellow ""([^"]|\\")*"" "<[^[:blank:]=]*>" +# Multiline strings. This regex is VERY resource intensive, +# and sometimes colours things that shouldn't be coloured. +###color brightyellow start=""(\\.|[^"])*\\[[:space:]]*$" end="^(\\.|[^"])*"" + +# Comments. +color brightblue "^\s*//.*" +color brightblue start="/\*" end="\*/" + +# Reminders. +color ,yellow "\<(FIXME|TODO|XXX)\>" + +# Trailing whitespace. +color ,green "[[:space:]]+$" diff --git a/nano/vhost.nanorc b/nano/vhost.nanorc new file mode 100755 index 0000000..2cbcf2e --- /dev/null +++ b/nano/vhost.nanorc @@ -0,0 +1,42 @@ +## Apache httpd.conf highlighting +## +#how to add sites-enabled files? "default" is too generic to keep in here I think +syntax "vhost" "(\.|/|)vhost\.conf" +color brightwhite "(ServerRoot|(Lock|Pid)File|Timeout|(Max)?KeepAlive(Requests|Timeout)?)" +color brightwhite "(User|Group|LogFormat|ErrorLog|Include|(Script)?Alias)" +color brightwhite "(ErrorDocument|AccessFileName|UseCanonicalName|TypesConfig|DefaultType)" +color brightwhite "(HostnameLookups|IndexOptions|(Readme|Header)Name|LanguagePriority)" +color brightwhite "(AddIcon(ByEncoding|ByType)?|DefaultIcon|IndexIgnore|BrowserMatch)" +color brightwhite "(Add(Encoding|Language|(Default)?Charset|Type|Handler)|DirectoryIndex)" +color brightwhite "(DocumentRoot|Server(Admin|Signature)|LogLevel|CustomLog)" +color brightwhite "((Force)?LanguagePriority|NameVirtualHost)" +color brightyellow "(SetHandler|Order|Deny|Allow|SetOutputFilter)" +color yellow "(AllowOverride|FileInfo|AuthConfig|Limit)" +color yellow "([^A-Z0-9a-z]Options|Indexes|(\+|\-)?SymLinksIfOwnerMatch)" +color yellow "(Includes(NoExec)?|(\+|\-)?MultiViews)" +color yellow "(None|allow,deny|deny,allow|(allow)? from (all)?|Prefer|Fallback)" +color yellow "(Add(Handler|OutputFilter)|NumServers|AcceptMutex)" +color yellow "((Min|Max)Spare(Threads|Servers)|Start(Threads|Servers))" +color yellow "(MaxClients|(Max)?ThreadsPerChild|MaxRequestsPerChild)" +color yellow "(FancyIndexing|VersionSort|ExecCGI|FollowSymLinks)" +color brightred "(On|Off)[[:space:]]*$" +color brightred "[[:space:]]+(debug|info|notice|warn|error|crit|alert|emerg)[[:space:]]*$" +color brightred "[[:space:]]+(combined|common|referer|agent)[[:space:]]*$" +color brightred "[[:space:]]+(redirect\-carefully|nokeepalive)[[:space:]]*" +color brightred "[[:space:]]+(force\-response\-1\.0)[[:space:]]*" +color brightred "[[:space:]]+(downgrade\-1\.0)[[:space:]]*" +color brightred "[[:space:]]+application/[a-zA-Z\-]+[[:space:]]*" +color brightred "[[:space:]]+type-map[[:space:]]*" +color magenta "[[:space:]]+[0-9]+[[:space:]]*" +color magenta "(/)?(2[0-5]{2}|1[0-9]{2}|[1-9][0-9]|[1-9])(\.(2[0-5]{2}|1[0-9]{2}|[1-9][0-9]|[0-9])){3}([[:space:]]+::(2[0-5]{2}|1[0-9]{2}|[1-9][0-9]|[0-9])/(2[0-5]{2}|1[0-9]{2}|[1-9][0-9]|[0-9]))?" +color brightcyan start="<" end=">" +color white ""(\\.|[^\"])*"" +# Unix-based paths +# can't use \] in the regex for some reason?!? Maybe a bug? +# this is preventing a 100% "to the end of the line" match for a few +# lines (the trailing characters from ] to the EOL are not highlighted. +# if anyone knows how to make it work, let me know.. ;) +color white "[[:space:]]+(/[/\[\^#A-Za-z0-9\.\*\_\-]+)+" +color green "^[[:space:]]*#.*" +color cyan "\<(ServerName|Serveralias|DocumentRoot|DirectoryIndex|ErrorLog|CustomLog)\>" + diff --git a/nano/vi.nanorc b/nano/vi.nanorc new file mode 100755 index 0000000..a2e2888 --- /dev/null +++ b/nano/vi.nanorc @@ -0,0 +1,10 @@ +syntax "VI" "(^|/|\.)(ex|vim)rc$|\.vim" + +color brightblue "[A-Za-z_][A-Za-z0-9_]*[[:space:]]*[()]" +color cyan "\<([nvxsoilc]?(nore|un)?map|[nvlx]n|[ico]?no|[cilovx][um]|s?unm)\>" +color cyan "\<(snor|nun|nm|set|if|endif|let|unlet)\>" +color red "[!&=]" +color yellow ""(\\.|[^"])*"|'(\\.|[^'])*'" +color brightblack "(^|[[:space:]])\"[^"]*$" +color ,green "[[:space:]]+$" +color ,red " + +| + +" diff --git a/nano/x11basic.nanorc b/nano/x11basic.nanorc new file mode 100755 index 0000000..2a8d236 --- /dev/null +++ b/nano/x11basic.nanorc @@ -0,0 +1,172 @@ +## Sytax highlighting for nano and pico for X11-Basic. (c) Markus Hoffmann 2019 + +# This file is part of X11-Basic, the basic interpreter for Unix/X +# ====================================================================== +# X11-Basic is free software and comes with NO WARRANTY - read the file +# COPYING for details + +syntax "x11basic" "\.(bas|xbas|LST|BAS)$" + +# Variable names + +icolor brightwhite "\<[A-Z_][A-Za-z0-9_]*(|\$|\%|\&|\||\(\))\>" + +# system vars +icolor cyan "\<(CCSAPLID|CCSERR|COLS|CRSCOL|CRSLIN|CTIMER|ERR|FALSE)\>" +icolor cyan "\<(GPS_ALT|GPS_LAT|GPS_LON|MOUSEK|MOUSES|MOUSEX|MOUSEY)\>" +icolor cyan "\<(PC|PI|ROWS|SP|STIMER|TIMER|TRUE)\>" + +# system string vars +icolor cyan "\<(DATE|FILEEVENT|INKEY|TERMINALNAME|TIME|TRACE)\$" + +#special system vars +icolor cyan "\<(ANDROID|GPIO|GPS|SENSOR|WIN32|UNIX)\?" + + +# system array vars + +# regular functions + +icolor green "\<(ABS|ACOS|ACOSH|ADD|AND|ARG|ARRPTR|ASC|ASIN|ASINH|ATAN|ATANH|ATN)\(" +icolor green "\<(BCHG|BCLR|BSET|BTST|BYTE)\(" +icolor green "\<(CALL|CALLD|CARD|CBRT|CEIL|COLOR_RGB|COMBIN|CONJ|COS|COSH|CRC|CVD|CVF|CVI|CVL|CVS)\(" +icolor green "\<(DEG|DET|DEVICE|DIV|DPEEK)\(" +icolor green "\<(EOF|EVAL|EVEN|EXEC|EXIST|EXP|EXPM1)\(" +icolor green "\<(FACT|FIX|FLOOR|FORK|FORM_ALERT|FORM_CENTER|FORM_DIAL|FORM_DO|FRAC|FREEFILE)\(" +icolor green "\<(GAMMA|GASDEV|GCD|GET_COLOR|GLOB|GPIO|GRAY)\(" +icolor green "\<(HYPOT)\(" +icolor green "\<(IMAG|INODE|INP|INSTR|INT|INVERT|IOCTL)\(" +icolor green "\<(JULIAN)\(" +icolor green "\<(LCM|LEN|LGAMMA|LISTSELECT|LN|LOC|LOF|LOG|LOG10|LOG1P|LOGB|LPEEK|LTEXTLEN)\(" +icolor green "\<(MALLOC|MAX|MIN|MOD|MODE|MSHRINK|MUL)\(" +icolor green "\<(NEXTPRIME|NLINK|NOT)\(" +icolor green "\<(OBJC_DRAW|OBJC_FIND|OBJC_OFFSET|ODD|OR)\(" +icolor green "\<(PEEK|POINT|POWM|PRED|PTST)\(" +icolor green "\<(RAD|RAND|RANDOM|REAL|REALLOC|RINSTR|RND|ROL|ROOT|ROR|ROUND|RSRC_GADDR)\(" +icolor green "\<(SENSOR|SGN|SHL|SHM_ATTACH|SHM_MALLOC|SHR|SIN|SINH|SIZE|SQR|SQRT|SRAND|SUB|SUCC|SWAP|SYM_ADR)\(" +icolor green "\<(TALLY|TAN|TANH|TRUNC)\(" +icolor green "\<(UBOUND)\(" +icolor green "\<(VAL|VARIAT|VARPTR|VRFY)\(" +icolor green "\<(WORD|WORT_SEP)\(" +icolor green "\<(XOR)\(" + +# question functions +icolor green "\<(DIM|EVENT|INP|TYP|VAL)\?\(" + +# special functions + +icolor green "\<(INP)\%\(" +icolor green "\<(INP)\&\(" + + + +# string functions +icolor green "\<(ARID|ARIE)\$\(" +icolor green "\<(BIN|BWTD|BWTE)\$\(" +icolor green "\<(CALL|CHR|COMPRESS)\$\(" +icolor green "\<(DECLOSE|DECRYPT|DIR)\$\(" +icolor green "\<(ENCLOSE|ENCRYPT|ENV|ERR)\$\(" +icolor green "\<(FSFIRST|FSNEXT)\$\(" +icolor green "\<(HASH|HEX)\$\(" +icolor green "\<(INLINE|INPUT)\$\(" +icolor green "\<(JULDATE)\$\(" +icolor green "\<(LEFT|LEFTOF|LINEINPUT|LOWER)\$\(" +icolor green "\<(MID|MKA|MKD|MKF|MKI|MKL|MKS|MTFD|MTFE)\$\(" +icolor green "\<(OCT)\$\(" +icolor green "\<(PARAM|PNGDECODE|PNGENCODE|PRG)\$\(" +icolor green "\<(REPLACE|REVERSE|RADIX|RIGHT|RIGHTOF|RLD|RLE)\$\(" +icolor green "\<(SIGN|SPACE|STR|STRING|SYSTEM)\$\(" +icolor green "\<(TERMINALNAME|TRIM)\$\(" +icolor green "\<(UCASE|UNCOMPRESS|UNIXDATE|UNIXTIME|UPPER|USING)\$\(" +icolor green "\<(WORD)\$\(" +icolor green "\<(XTRIM)\$\(" + +# array functions + +icolor green "\<(0|1|CONVOLUT|CVA|FFT|INV|SMUL|SOLVE|TRANS)\(" + + + +# special commands + +icolor brightmagenta "(^|^[[:space:]]*)(DIM|LOCAL|LET)\>" +icolor cyan "(^|^[[:space:]]*)DATA.*$" + +icolor red "(^|^[[:space:]]*)ENDFUNCTION\>" +icolor red "(^|^[[:space:]]*)(RETURN|BREAK|CONTINUE|EXIT\ IF)\>" +icolor red "(^|^[[:space:]]*)(FUNCTION|PROCEDURE|DEFFN)\>" + +icolor blue "(^|^[[:space:]]*)(endselect|select|default|endif|else\ if|else|case|do|loop|next|for|if|while|wend|repeat|until|goto|gosub|spawn|void)\>" +icolor brightred "(^|^[[:space:]]*)(END|QUIT|STOP|TRON|TROFF|ECHO|EDIT|NEW|RUN)\>" + + +# regular commands + +icolor brightgreen "(^|^[[:space:]]*)(ABSOLUTE|ADD|AFTER|ALERT|ARRAYCOPY|ARRAYFILL)\>" +icolor brightgreen "(^|^[[:space:]]*)(BEEP|BELL|BGET|BLOAD|BMOVE|BOTTOMW|BOUNDARY|BOX|BPUT|BSAVE)\>" +icolor brightgreen "(^|^[[:space:]]*)(CALL|CHAIN|CHDIR|CHMOD|CIRCLE|CLEAR|CLEARW|CLIP|CLOSE|CLOSEW|CLR|CLS|COLOR|CONNECT|COPYAREA|CURVE)\>" +icolor brightgreen "(^|^[[:space:]]*)(DEC|DEFFILL|DEFLINE|DEFMARK|DEFMOUSE|DEFTEXT|DELAY|DIV|DPOKE|DRAW|DUMP)\>" +icolor brightgreen "(^|^[[:space:]]*)(ELLIPSE|ERASE|ERROR|EVAL|EVENT|EVERY|EXEC)\>" +icolor brightgreen "(^|^[[:space:]]*)(FFT|FILESELECT|FILL|FIT|FIT_LINEAR|FIT_POLY|FLUSH|FREE|FULLW)\>" +icolor brightgreen "(^|^[[:space:]]*)(GET|GET_GEOMETRY|GET_LOCATION|GET_SCREENSIZE|GPIO|GPRINT|GPS|GRAPHMODE)\>" +icolor brightgreen "(^|^[[:space:]]*)(HELP|HIDEK|HIDEM|HOME)\>" +icolor brightgreen "(^|^[[:space:]]*)(INC|INFOW|INPUT)\>" +icolor brightgreen "(^|^[[:space:]]*)(KEYEVENT|KILL)\>" +icolor brightgreen "(^|^[[:space:]]*)(LINE|LINEINPUT|LINK|LIST|LOAD|LOCATE|LPOKE|LTEXT)\>" +icolor brightgreen "(^|^[[:space:]]*)(MEMDUMP|MENU|MENUDEF|MENUKILL|MENUSET|MERGE|MFREE|MKDIR|MOUSE|MOUSEEVENT|MOTIONEVENT|MOVEW|MSYNC|MUL)\>" +icolor brightgreen "(^|^[[:space:]]*)(NOOP|NOP|NOROOTWINDOW)\>" +icolor brightgreen "(^|^[[:space:]]*)(OBJC_ADD|OBJC_DELETE|ON|OPEN|OPENW|OUT)\>" +icolor brightgreen "(^|^[[:space:]]*)(PAUSE|PBOX|PCIRCLE|PELLIPSE|PIPE|PLAYSOUND|PLAYSOUNDFILE|PLIST|PLOT|POKE|POLYFILL|POLYLINE|POLYMARK|PRBOX|PRINT|PUT|PUTBACK|PUT_BITMAP)\>" +icolor brightgreen "(^|^[[:space:]]*)(RANDOMIZE|RBOX|READ|RECEIVE|RELSEEK|RENAME|RESTORE|RMDIR|ROOTWINDOW|RSRC_FREE|RSRC_LOAD)\>" +icolor brightgreen "(^|^[[:space:]]*)(SAVE|SAVESCREEN|SAVEWINDOW|SCOPE|SCREEN|SEEK|SEND|SENSOR|SETFONT|SETMOUSE|SGET|SHELL|SHM_DETACH|SHM_FREE|SHOWK|SHOWM|SHOEPAGE|SIZEW|SORT|SOUND|SPEAK|SPLIT|SPUT|SUB|SWAP|SYSTEM)\>" +icolor brightgreen "(^|^[[:space:]]*)(TEXT|TITLEW|TOPW|TOUCH)\>" +icolor brightgreen "(^|^[[:space:]]*)(UNLINK|UNMAP|USEWINDOW)\>" +icolor brightgreen "(^|^[[:space:]]*)(VERSION|VSYNC)\>" +icolor brightgreen "(^|^[[:space:]]*)(WATCH|WAVE|WORT_SEP)\>" +icolor brightgreen "(^|^[[:space:]]*)(XLOAD|XRUN)\>" + +## commands with a blank in it + +icolor brightblue "(^|^[[:space:]]*)(ON\ ERROR\ CONT)" +icolor brightblue "(^|^[[:space:]]*)(ON\ BREAK\ CONT)" +icolor brightred "(^|^[[:space:]]*)(ECHO\ (ON|OFF))" + + +## keywords +icolor brightblue "\<(and|or|not|to|xor|not|then|step|var|tab|using)\>" + +## operators +color white "[+*=\^]" "<" ">" "/" "-" +color brightred "[@\~]" + + +## number constants +icolor brightyellow "\b(([1-9][0-9]+)|0+)\.[0-9]+j?\b" "\b([1-9][0-9]*[Lj]?)\b" "\b0o?[0-7]*L?\b" "\b0x[1-9a-f][0-9a-f]*L?\b" "\b0b[01]+\b" +icolor brightyellow "[\ ,\(]\#[1-9][0-9]*\b" + +## parentheses +color magenta "[(){}]" "\[" "\]" + +# labels +icolor red "(^|^[[:space:]]*)[^\ ^=.]*:" + +# Comments. +color yellow "(^|^[[:space:]]*)'.*$" +icolor yellow "(^|^[[:space:]]*)REM.*$" +color yellow "!.*$" + +icolor brightwhite,blue "(^|^[[:space:]]*)PROGRAM.*$" + +#shebang line +icolor brightwhite,green "^\#\!.*$" + + + +# Strings +color yellow "<[^= ]*>" ""(\\.|[^"])*"" + +## trailing spaces +color ,green "[[:space:]]+$" + +## reminders +color brightwhite,yellow "(FIXME|TODO|XXX)" diff --git a/nano/xdefaults.nanorc b/nano/xdefaults.nanorc new file mode 100755 index 0000000..f57261e --- /dev/null +++ b/nano/xdefaults.nanorc @@ -0,0 +1,10 @@ +## Xdefaults +syntax "Xdefaults" "(\.|/|)default.$" "(\.|/|)resource.$" "fonts.alias" +color magenta "XTerm" +color cyan "Rxvt" +color white "\*(\\.|[^'])*\:" +color brightblue "\<(true)\>" +color brightred "\<(false)\>" +color brightwhite "[0-9]" +color green "!.*$" "#.*$" + diff --git a/nano/xml.nanorc b/nano/xml.nanorc new file mode 100755 index 0000000..09fb399 --- /dev/null +++ b/nano/xml.nanorc @@ -0,0 +1,10 @@ +## Here is an example for xml files. +## +syntax "xml" ".*\.([jrs]?html?|xml|sgml?|rng|lang)$" +color white "^.+$" +color green start="<" end=">" +color cyan "<[^> ]+" +color cyan ">" +color yellow start="" +color yellow start="" +color red "&[^;]*;" diff --git a/nano/xorg.nanorc b/nano/xorg.nanorc new file mode 100755 index 0000000..51c7464 --- /dev/null +++ b/nano/xorg.nanorc @@ -0,0 +1,18 @@ +## syntax highlighting in xorg.conf +## +syntax "xorg" "xorg\.conf$" +color brightwhite "[^A-Za-z0-9](End)?Sub[sS]ection([^A-Za-z0-9]|[[:space:]]*)" +color brightwhite "^[[:space:]]*(End)?Section([^A-Za-z0-9]|[[:space:]]*)" +color yellow "[^A-Za-z0-9](Monitor|View[pP]ort|Virtual)[^A-Za-z0-9]" +color yellow "[^A-Za-z0-9]Mod(e|es|eline|ulePath|elName)[^A-Za-z0-9]" +color yellow "[^A-Za-z0-9](\+vsync|\+hsync|HorizSync|VertRefresh)[^A-Za-z0-9]" +color yellow "[^A-Za-z0-9](Rgb|Font)Path[^A-Za-z0-9]" +color yellow "[^A-Za-z0-9](Default(Color)?)?Depth[^A-Za-z0-9]" +color yellow "[^A-Za-z0-9](Input)?Device[^A-Za-z0-9]" +color yellow "[^A-Za-z0-9](Identifier|Screen|Option)[^A-Za-z0-9]" +color yellow "[^A-Za-z0-9]((Left|Right)Of|Driver|Load)[^A-Za-z0-9]" +color yellow "[^A-Za-z0-9](VendorName|BoardName|BusID)[^A-Za-z0-9]" +color magenta "[0-9]" +color white ""(\\.|[^\"])*"" +color green "#.*" + diff --git a/nano/xresources.nanorc b/nano/xresources.nanorc new file mode 100755 index 0000000..7773642 --- /dev/null +++ b/nano/xresources.nanorc @@ -0,0 +1,10 @@ +syntax "Xresources" "X(defaults|resources)$" + +color green "^[[:alnum:]]+\*" +color brightyellow "\*[[:alnum:]]+\:" +color blue "\<[0-9]+\>" +color red "[*:=]" +color brightcyan "\<(true|false)\>" +color brightblack "(^|[[:space:]])#([^{].*)?$" +color ,green "[[:space:]]+$" +color ,red " + +| + +" diff --git a/nano/yaml.nanorc b/nano/yaml.nanorc new file mode 100755 index 0000000..f202cd8 --- /dev/null +++ b/nano/yaml.nanorc @@ -0,0 +1,24 @@ +syntax "yaml" "\.ya?ml$" +#comment "#" +header "^---" "%YAML" + +# Values +color green "(:|^|\s)+\S+" + +# Keys +color red "(^|\s+).*+\s*:(\s|$)" + +# Special values +color yellow "[:-]\s+(true|false|null)\s*$" +color yellow "[:-]\s+[0-9]+\.?[0-9]*(\s*($|#))" +color yellow "(^| )!!(binary|bool|float|int|map|null|omap|seq|set|str) " + +# Separator +color brightwhite "^\s+-" +color brightwhite ":(\s|\t|$)" + +# Comments +color brightblue "(^|[[:space:]])#.*$" + +# Trailing whitespace +color ,red "[[:space:]]+$" diff --git a/nano/yum.nanorc b/nano/yum.nanorc new file mode 100755 index 0000000..b463922 --- /dev/null +++ b/nano/yum.nanorc @@ -0,0 +1,8 @@ +syntax "YUM" "\.repo$|yum.*\.conf$" + +color cyan "^[[:space:]]*[^=]*=" +color brightmagenta "^[[:space:]]*\[.*\]$" +color brightyellow "\$(releasever|arch|basearch|uuid|YUM[0-9])" +color brightblack "(^|[[:space:]])#([^{].*)?$" +color ,green "[[:space:]]+$" +color ,red " + +| + +" diff --git a/nano/zig.nanorc b/nano/zig.nanorc new file mode 100755 index 0000000..4dce80a --- /dev/null +++ b/nano/zig.nanorc @@ -0,0 +1,9 @@ +syntax "Zig" "\.zig$$" +color latte "\<(align|allowzero|and|anyframe|anytype|asm|async|await|break|catch|comptime|const|continue|defer|else|enum|errdefer|error|export|extern|fn|for|if|inline|noalias|nosuspend|or|orelse|packed|pub|resume|return|linksection|struct|suspend|switch|test|threadlocal|try|union|unreachable|usingnamespace|var|volatile|while)\>" +color brightcyan "@[a-zA-Z]+[0-9]{0,2}" +color cyan "(true|false|null|undefined)" +color cyan "\<(0[xob])?([0-9]_?)+\>" +color blue "\<([iu][0-9]{1,5}|f16|f32|f64|f128)\>" +color magenta "\"[^"]*\"" +comment "//" +tabgives " " diff --git a/nano/zsh.nanorc b/nano/zsh.nanorc new file mode 100755 index 0000000..4e77b36 --- /dev/null +++ b/nano/zsh.nanorc @@ -0,0 +1,42 @@ +## Syntax highlighting for ZSH scripts (initially copied from sh.nanorc) +syntax "ZSH" "\.zsh$" "\.?(zshenv|zprofile|zshrc|zlogin|zlogout|zsh-theme)$" +header "^#!.*/(env +)?zsh( |$)" + +## Numbers +color brightyellow "\b[0-9]+\b" + +## Conditionals and control flow +color green "\<(always|break|bye|case|continue|disown|do|done|elif|else|esac|exit|fi|for|function|if|in|local|read|return|select|shift|then|time|until|while)\>" + +color green "(\{|\}|\(|\)|\;|\]|\[|`|\\|\$|<|>|!|=|&|\|)" +## Conditional flags +color green "-[Ldefgruwx]\>" +color green "-(eq|ne|gt|lt|ge|le|s|n|z)\>" + +## Bash-inherited +color brightblue "\<((un)?alias|bindkey|builtin|cd|command|declare|eval|exec|export|jobs|let|popd|pushd|set|source|typeset|umask|unset)\>" +## ZSH-specific +color brightblue "\<(add-zsh-hook|autoload|cdr|chdir|compinit|dirs|(dis|en)able|echotc|echoti|emulate|print|printf|prompt(init)?|(un)?setopt|zle|zmodload|zstyle|whence|zargs|zmv)\>" + +## Common linux commands +color brightmagenta "\<((g|ig)?awk|find|diff|\w{0,4}grep|kill|killall|\w{0,4}less|make|pkill|sed|sudo|tar)\>" + +## Coreutils commands +color brightmagenta "\<(base(32|64)|basename|cat|chcon|chgrp|chmod|chown|chroot|cksum|comm|cp|csplit|cut|date|dd|df|dir|dircolors|dirname|du|echo|env|expand|expr|factor|false|fmt|fold|head|hostid|id|install|join|link|ln|logname|ls|md5sum|mkdir|mkfifo|mknod|mktemp|mv|nice|nl|nohup|nproc|numfmt|od|paste|pathchk|pinky|pr|printenv|ptx|pwd|readlink|realpath|rm|rmdir|runcon|seq|(sha1|sha224|sha256|sha384|sha512)sum|shred|shuf|sleep|sort|split|stat|stdbuf|stty|sum|sync|tac|tail|tee|test|timeout|touch|tr|true|truncate|tsort|tty|uname|unexpand|uniq|unlink|users|vdir|wc|who|whoami|yes)\>" + +## Function definition +icolor brightgreen "^\s+(function\s+)[0-9A-Z_]+\s+\(\)" + +## Variables +icolor brightred "\$\{?[0-9A-Z_!@#$*?-]+\}?" + +## Strings +color yellow ""(\\.|[^"])*"" +color yellow "'(\\.|[^'])*'" + +## Comments +color cyan "(^|[[:space:]])#.*$" +color brightcyan "(^|[[:space:]])##.*$" + +## Trailing spaces +color ,green "[[:space:]]+$" diff --git a/nano/zshrc.nanorc b/nano/zshrc.nanorc new file mode 100755 index 0000000..e5d4183 --- /dev/null +++ b/nano/zshrc.nanorc @@ -0,0 +1,14 @@ +## Hightlightings for zsh configuration files (most used keywords) +syntax "zshrc" "\.?zshrc$" + +## Keywords +color red "\<(autoload|prompt(init)?|zstyle|zmodload|compinit|setopt|export|source)\>" +color magenta "\<(alias|bindkey|function)\>" + +## Strings +icolor white ""(\\.|[^"])*"" +icolor white "'(\\.|[^'])*'" + +## Comments +icolor brightblue "^[[:space:]]*#.*$" +icolor cyan "^[[:space:]]*##.*$" diff --git a/nanorc b/nanorc new file mode 100755 index 0000000..5b0c561 --- /dev/null +++ b/nanorc @@ -0,0 +1,91 @@ +set linenumbers +include "~/.nano/apacheconf.nanorc" +include "~/.nano/arduino.nanorc" +include "~/.nano/asciidoc.nanorc" +include "~/.nano/asm.nanorc" +include "~/.nano/awk.nanorc" +include "~/.nano/c.nanorc" +include "~/.nano/clojure.nanorc" +include "~/.nano/cmake.nanorc" +include "~/.nano/coffeescript.nanorc" +include "~/.nano/colortest.nanorc" +include "~/.nano/conf.nanorc" +include "~/.nano/csharp.nanorc" +include "~/.nano/css.nanorc" +include "~/.nano/cython.nanorc" +include "~/.nano/dot.nanorc" +include "~/.nano/dotenv.nanorc" +include "~/.nano/email.nanorc" +include "~/.nano/Dockerfile.nanorc" +include "~/.nano/etc-hosts.nanorc" +include "~/.nano/fish.nanorc" +include "~/.nano/fortran.nanorc" +include "~/.nano/gentoo.nanorc" +include "~/.nano/git.nanorc" +include "~/.nano/gitcommit.nanorc" +include "~/.nano/glsl.nanorc" +include "~/.nano/go.nanorc" +include "~/.nano/gradle.nanorc" +include "~/.nano/groff.nanorc" +include "~/.nano/haml.nanorc" +include "~/.nano/haskell.nanorc" +include "~/.nano/html.nanorc" +include "~/.nano/html.j2.nanorc" +include "~/.nano/ical.nanorc" +include "~/.nano/ini.nanorc" +include "~/.nano/inputrc.nanorc" +include "~/.nano/jade.nanorc" +include "~/.nano/java.nanorc" +include "~/.nano/javascript.nanorc" +include "~/.nano/js.nanorc" +include "~/.nano/json.nanorc" +include "~/.nano/keymap.nanorc" +include "~/.nano/kickstart.nanorc" +include "~/.nano/kotlin.nanorc" +include "~/.nano/ledger.nanorc" +include "~/.nano/lisp.nanorc" +include "~/.nano/lua.nanorc" +include "~/.nano/makefile.nanorc" +include "~/.nano/man.nanorc" +include "~/.nano/markdown.nanorc" +include "~/.nano/mpdconf.nanorc" +include "~/.nano/mutt.nanorc" +include "~/.nano/nanorc.nanorc" +include "~/.nano/nginx.nanorc" +include "~/.nano/nmap.nanorc" +include "~/.nano/ocaml.nanorc" +include "~/.nano/patch.nanorc" +include "~/.nano/peg.nanorc" +include "~/.nano/perl.nanorc" +include "~/.nano/perl6.nanorc" +include "~/.nano/php.nanorc" +include "~/.nano/pkg-config.nanorc" +include "~/.nano/pkgbuild.nanorc" +include "~/.nano/po.nanorc" +include "~/.nano/pov.nanorc" +include "~/.nano/privoxy.nanorc" +include "~/.nano/puppet.nanorc" +include "~/.nano/pug.nanorc" +include "~/.nano/python.nanorc" +include "~/.nano/reST.nanorc" +include "~/.nano/rpmspec.nanorc" +include "~/.nano/ruby.nanorc" +include "~/.nano/rust.nanorc" +include "~/.nano/scala.nanorc" +include "~/.nano/sed.nanorc" +include "~/.nano/sh.nanorc" +include "~/.nano/sls.nanorc" +include "~/.nano/sql.nanorc" +include "~/.nano/svn.nanorc" +include "~/.nano/swift.nanorc" +include "~/.nano/systemd.nanorc" +include "~/.nano/tcl.nanorc" +include "~/.nano/tex.nanorc" +include "~/.nano/vala.nanorc" +include "~/.nano/verilog.nanorc" +include "~/.nano/vi.nanorc" +include "~/.nano/xml.nanorc" +include "~/.nano/xresources.nanorc" +include "~/.nano/yaml.nanorc" +include "~/.nano/yum.nanorc" +include "~/.nano/zsh.nanorc"