mirror of
https://github.com/zdharma-continuum/fast-syntax-highlighting.git
synced 2026-08-12 22:31:28 +04:00
maint: update links (e.g., zdharma -> zdharma-continuum) (#41)
Authored by: @wangl-cc
This commit is contained in:
+11
-11
@@ -9,7 +9,7 @@ program arguments. See the introduction for an example (item #14).
|
||||
|
||||
Global aliases are now supported:
|
||||
|
||||

|
||||

|
||||
|
||||
**2018-08-01**
|
||||
|
||||
@@ -35,7 +35,7 @@ If you have set theme before an update of styles (e.g. recent addition of bracke
|
||||
|
||||
Ideal highlighting of brackets (pairing, etc.) – no quoting can disturb the result:
|
||||
|
||||

|
||||

|
||||
|
||||
`FAST_HIGHLIGHT[use_brackets]=1` to enable this feature (**2018-07-31**: not needed anymore, this highlighting is active
|
||||
by default).
|
||||
@@ -69,14 +69,14 @@ FSH gained a new architecture – "chroma functions". They are similar to "compl
|
||||
[example chroma](https://github.com/zdharma/fast-syntax-highlighting/blob/master/chroma/-example.ch) if you would like
|
||||
to highlight a command.
|
||||
|
||||

|
||||

|
||||
|
||||
**2018-06-01**
|
||||
|
||||
Highlighting of command substitution (i.e. `$(...)`) with alternate theme – two themes at once! It was just white
|
||||
before:
|
||||
|
||||

|
||||

|
||||
|
||||
To select which theme to use for `$(...)` set the key `secondary=` in
|
||||
[theme ini file](https://github.com/zdharma/fast-syntax-highlighting/blob/master/themes/free.ini#L7). All shipped themes
|
||||
@@ -84,14 +84,14 @@ have this key set (only the `default` theme doesn't use second theme).
|
||||
|
||||
Also added correct highlighting of descriptor-variables passed to `exec`:
|
||||
|
||||

|
||||

|
||||
|
||||
**2018-05-30**
|
||||
|
||||
For-loop is highlighted, it has separate settings in
|
||||
[theme file](https://github.com/zdharma/fast-syntax-highlighting/blob/master/themes/free.ini).
|
||||
|
||||

|
||||

|
||||
|
||||
**2018-05-27**
|
||||
|
||||
@@ -113,18 +113,18 @@ FAST_BLIST_PATTERNS[/mount/disk2/*]=1
|
||||
|
||||
Assign colorizing now spans to variables defined by `typeset`, `export`, `local`, etc.:
|
||||
|
||||

|
||||

|
||||
|
||||
Also, `zcalc` has a separate math mode and specialized highlighting – no more light-red colors because of treating
|
||||
`zcalc` like a regular command-line:
|
||||
|
||||

|
||||

|
||||
|
||||
**2018-05-22**
|
||||
|
||||
Array assignments were still boring, so I throwed in bracked colorizing:
|
||||
|
||||

|
||||

|
||||
|
||||
**2018-05-22**<a name="assign-update"></a>
|
||||
|
||||
@@ -134,7 +134,7 @@ Assignments are no more one-colour default-white. When used in assignment, highl
|
||||
- strings (double-quoted and single-quoted),
|
||||
- math-mode (`val=$(( ... ))`).
|
||||
|
||||

|
||||

|
||||
|
||||
**2018-01-06**
|
||||
|
||||
@@ -144,4 +144,4 @@ style names (fields of
|
||||
math-variable, number and empty variable (error): `mathvar`, `mathnum`, `matherr`. You can set them (like the animation
|
||||
below shows) to change colors.
|
||||
|
||||

|
||||

|
||||
|
||||
+2
-2
@@ -53,11 +53,11 @@ Secondary theme (`zdharma` in the example) will be used for highlighting of argu
|
||||
interior (i.e. of interior of command substitution). Basically, recursive highlighting uses alternate theme to make the
|
||||
highlighted code distinct:
|
||||
|
||||

|
||||

|
||||
|
||||
In the above screen-shot the interior of `$( ... )` uses different colors than the rest of the code. Example for `eval`:
|
||||
|
||||

|
||||

|
||||
|
||||
First line doesn't use recursive highlighting, highlights `eval` argument as regular string. Second line switches theme
|
||||
to `zdharma` and does full recursive highlighting of eval argument.
|
||||
|
||||
@@ -366,11 +366,11 @@ alias fsh-alias=fast-theme
|
||||
if [[ ! -e $FAST_WORK_DIR/secondary_theme.zsh ]] {
|
||||
if { type curl &>/dev/null } {
|
||||
curl -fsSL -o "$FAST_WORK_DIR/secondary_theme.zsh" \
|
||||
https://raw.githubusercontent.com/zdharma/fast-syntax-highlighting/master/share/free_theme.zsh \
|
||||
https://raw.githubusercontent.com/zdharma-continuum/fast-syntax-highlighting/master/share/free_theme.zsh \
|
||||
&>/dev/null
|
||||
} elif { type wget &>/dev/null } {
|
||||
wget -O "$FAST_WORK_DIR/secondary_theme.zsh" \
|
||||
https://raw.githubusercontent.com/zdharma/fast-syntax-highlighting/master/share/free_theme.zsh \
|
||||
https://raw.githubusercontent.com/zdharma-continuum/fast-syntax-highlighting/master/share/free_theme.zsh \
|
||||
&>/dev/null
|
||||
}
|
||||
touch "$FAST_WORK_DIR/secondary_theme.zsh"
|
||||
|
||||
Reference in New Issue
Block a user