Merged
Conversation
- 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
with Expect commands added (Expect is a TCL extension).
- 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
Originally proposed in scopatz#378
Originally proposed in scopatz#380
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".
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Doing a PR to do a big squash-merge since the commits are out of date-order.