-
Notifications
You must be signed in to change notification settings - Fork 28
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added highlighting settings for YAML and Bash (#297)
* Added settings for YAML highlighting * Added styling settings for Bash, added red and yellow colors for warning/error/critical messages in the log window
- Loading branch information
1 parent
0bd3f00
commit 31a69cf
Showing
4 changed files
with
102 additions
and
4 deletions.
There are no files selected for viewing
29 changes: 29 additions & 0 deletions
29
Source/NimbleCommander/NimbleCommander/Resources/SyntaxHighlighting/Bash.json
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
{ | ||
"lexer": "bash", | ||
"wordlists": [ | ||
"if then elif else fi time for in until while do done case esac coproc select function" | ||
], | ||
"properties": { | ||
"lexer.bash.styling.inside.string": "1", | ||
"lexer.bash.styling.inside.backticks": "1", | ||
"lexer.bash.styling.inside.parameter": "1", | ||
"lexer.bash.styling.inside.heredoc": "1", | ||
"lexer.bash.command.substitution": "1" | ||
}, | ||
"mapping": { | ||
"SCE_SH_DEFAULT": "default", | ||
"SCE_SH_ERROR": "preprocessor", | ||
"SCE_SH_COMMENTLINE": "comment", | ||
"SCE_SH_NUMBER": "number", | ||
"SCE_SH_WORD": "keyword", | ||
"SCE_SH_STRING": "string", | ||
"SCE_SH_CHARACTER": "string", | ||
"SCE_SH_OPERATOR": "operator", | ||
"SCE_SH_IDENTIFIER": "identifier", | ||
"SCE_SH_SCALAR": "keyword", | ||
"SCE_SH_PARAM": "keyword", | ||
"SCE_SH_BACKTICKS": "operator", | ||
"SCE_SH_HERE_DELIM": "operator", | ||
"SCE_SH_HERE_Q": "operator" | ||
} | ||
} |
This file contains 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
20 changes: 20 additions & 0 deletions
20
Source/NimbleCommander/NimbleCommander/Resources/SyntaxHighlighting/YAML.json
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
{ | ||
"lexer": "yaml", | ||
"wordlists": [ | ||
"true false yes no" | ||
], | ||
"properties": { | ||
}, | ||
"mapping": { | ||
"SCE_YAML_DEFAULT": "default", | ||
"SCE_YAML_COMMENT": "comment", | ||
"SCE_YAML_IDENTIFIER": "keyword", | ||
"SCE_YAML_KEYWORD": "keyword", | ||
"SCE_YAML_NUMBER": "number", | ||
"SCE_YAML_REFERENCE": "identifier", | ||
"SCE_YAML_DOCUMENT": "keyword", | ||
"SCE_YAML_TEXT": "string", | ||
"SCE_YAML_ERROR": "preprocessor", | ||
"SCE_YAML_OPERATOR": "operator" | ||
} | ||
} |
This file contains 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