Skip to content

Efreak/nanorc/main#1

Merged
mpql merged 72 commits intomainfrom
Efreak/nanorc/main
Nov 9, 2023
Merged

Efreak/nanorc/main#1
mpql merged 72 commits intomainfrom
Efreak/nanorc/main

Conversation

@mpql
Copy link
Copy Markdown
Owner

@mpql mpql commented Nov 9, 2023

Doing a PR to do a big squash-merge since the commits are out of date-order.

davidhcefx and others added 30 commits April 13, 2023 23:16
- Full list of directives updated from: http://nginx.org/en/docs/dirindex.html
- Deleted 3 keywords, added 233 keywords
- Improve colorings based on iPython (colors=Linux):
    - Green for exceptions and function names.
    - Red for keywords such as `from` and `not`.
    - Cyan for keywords such as `for` and `if`.
- Fix empty strings not correctly highlighted.
- Fix block comments not correctly highlighted when nothing follows `===`.
- Add support for "TODO".
- Lots of syntax regex are poorly written and did not ends with a '$',
   which caused them competing with other regex rules.
Fixes complaint from GNU nano from git, v6.3-7-g18a40caa:

Error in /home/vorburger/dev/nanorc/nanorc.nanorc on line 26: Color 'normal' takes no prefix
Get rid of message `Error in /usr/share/nano-syntax-highlighting/etc-hosts.nanorc on line 11: Color "normal" not understood.` after nano exits.
  inflating: nanorc-2.9/zsh.nanorc
    linking: nanorc-2.9/zshrc.nanorc  -> zsh.nanorc
finishing deferred symbolic links:
  nanorc-2.9/gitcommit.nanorc -> git.nanorc
  nanorc-2.9/html.j2.nanorc -> html.nanorc
  nanorc-2.9/zshrc.nanorc -> zsh.nanorc
+ mv 'nanorc-v2.9/*' ./
mv: cannot stat 'nanorc-v2.9/*': No such file or directory
+ rm -rf nanorc-v2.9
+ rm /tmp/nanorc.zip
+ '[' ']'
+ _update_nanorc
+ touch /c/Users/home/.nanorc
install.sh: line 20: /c/Users/home/.nano/nanorc: No such file or directory
Signed-off-by: Harsh Shandilya <msfjarvis@gmail.com>
- Removed .travis.yml and shellcheck.sh
- Added CI badge to README
rasa and others added 29 commits September 27, 2023 19:28
with Expect commands added (Expect is a TCL extension).
Removed commented lines and adjusted heading comments
- Use the same coding convension as most languages' (eg. bash) highlighting colors.
- Commands:
    - remove not workable regex
    - change to use *official-approved verbs* instead
    - add 157 builtin aliases
- Comparison operators:
    - add 47 more operators not been covered
- Keywords (statement):
    - add 28 more keywords not been covered
- Types:
    - add 14 new types highlighting
- Comments:
    - fix a buggy case of block comment
- Quoted text:
    - add a here-string case not been covered
This got me in a lot of trouble with a file path containing /vhosts/ so made it more strict.

Originally proposed in scopatz#386
The master.zip contains a folder "nano-syntax-highlighting-master" now in the fork where originally it extracted as "nanorc-master".
@mpql mpql merged commit fd2eb93 into main Nov 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.