Sebastian Gniazdowski
|
1930d37084
|
-example.ch: Added example chroma function
|
2018-06-06 08:42:26 +02:00 |
|
Sebastian Gniazdowski
|
be88850185
|
Performance status [+] 39+77=116 / -26+24=-2
No chroma:
./parse.zsh -oo # 39 ms increase (caused by other commits from last PStatus)
Running time: 2.1572750000
num calls time self name
-----------------------------------------------------------------------------------
1) 350 2139,34 6,11 99,99% 1619,36 4,63 75,68% -fast-highlight-process
2) 3150 417,41 0,13 19,51% 417,41 0,13 19,51% -fast-highlight-string
3) 1400 54,94 0,04 2,57% 54,94 0,04 2,57% -fast-highlight-check-path
4) 1400 47,64 0,03 2,23% 47,64 0,03 2,23% -fast-highlight-main-type
5) 1 0,26 0,26 0,01% 0,26 0,26 0,01% -fast-highlight-fill-option-variables
6) 1 0,03 0,03 0,00% 0,03 0,03 0,00% -fast-highlight-init
./parse.zsh -ooo # -26 increase, i.e. decrease
Running time: 1.1181060000
num calls time self name
-----------------------------------------------------------------------------------
1) 100 1112,04 11,12 99,99% 885,68 8,86 79,63% -fast-highlight-process
2) 900 98,97 0,11 8,90% 98,97 0,11 8,90% -fast-highlight-string
3) 300 78,39 0,26 7,05% 78,39 0,26 7,05% -fast-highlight-math-string
4) 1600 44,72 0,03 4,02% 44,72 0,03 4,02% -fast-highlight-main-type
5) 100 4,29 0,04 0,39% 4,29 0,04 0,39% -fast-highlight-check-path
6) 1 0,14 0,14 0,01% 0,14 0,14 0,01% -fast-highlight-fill-option-variables
7) 1 0,02 0,02 0,00% 0,02 0,02 0,00% -fast-highlight-init
With chroma:
./parse.zsh -oo # 77 ms increase compared to above
Running time: 2.2567730000
num calls time self name
-----------------------------------------------------------------------------------
1) 350 2215,97 6,33 99,99% 1710,59 4,89 77,19% -fast-highlight-process
2) 3150 424,47 0,13 19,15% 424,47 0,13 19,15% -fast-highlight-string
3) 1400 56,89 0,04 2,57% 56,89 0,04 2,57% -fast-highlight-check-path
4) 1400 24,03 0,02 1,08% 24,03 0,02 1,08% -fast-highlight-main-type
5) 1 0,22 0,22 0,01% 0,22 0,22 0,01% -fast-highlight-fill-option-variables
6) 1 0,02 0,02 0,00% 0,02 0,02 0,00% -fast-highlight-init
./parse.zsh -ooo # 24 increase compared to above
Running time: 1.1422620000
num calls time self name
-----------------------------------------------------------------------------------
1) 100 1135,96 11,36 99,98% 911,76 9,12 80,25% -fast-highlight-process
2) 900 98,34 0,11 8,66% 98,34 0,11 8,66% -fast-highlight-string
3) 300 77,94 0,26 6,86% 77,94 0,26 6,86% -fast-highlight-math-string
4) 1600 43,85 0,03 3,86% 43,85 0,03 3,86% -fast-highlight-main-type
5) 100 4,07 0,04 0,36% 4,07 0,04 0,36% -fast-highlight-check-path
6) 1 0,21 0,21 0,02% 0,21 0,21 0,02% -fast-highlight-fill-option-variables
7) 1 0,04 0,04 0,00% 0,04 0,04 0,00% -fast-highlight-init
|
2018-06-04 22:16:05 +02:00 |
|
Sebastian Gniazdowski
|
0e033f8c97
|
Experimental chroma support, currently active only on command `git'
|
2018-06-04 20:20:14 +02:00 |
|
Sebastian Gniazdowski
|
43ae2216ec
|
*-highlight: Emacs mode-line
|
2018-06-04 20:03:21 +02:00 |
|
Sebastian Gniazdowski
|
66e9b3c5ed
|
*-highlight: Detection of $( ) now doesn't go for $(( )) as a candidate
|
2018-06-04 18:19:24 +02:00 |
|
Sebastian Gniazdowski
|
f54d7702a6
|
*-highlight: Rename $cur_cmd to $active_command
|
2018-06-04 16:57:01 +02:00 |
|
Sebastian Gniazdowski
|
3f24e6868f
|
*-highlight: Make sudo and always-block compatible with `case' handling
|
2018-06-04 16:33:20 +02:00 |
|
Sebastian Gniazdowski
|
70a7e18a32
|
fast-theme,*-highlight: 3 new styles for `case' higlighting
|
2018-06-02 20:37:13 +02:00 |
|
Sebastian Gniazdowski
|
8d90dc2727
|
*-highlight: Support for `case' highlighting
|
2018-06-02 19:55:12 +02:00 |
|
Sebastian Gniazdowski
|
10d291cc01
|
*-highlight: Softer state manipulation, less rigid =1 etc. assignments
|
2018-06-02 19:51:34 +02:00 |
|
Sebastian Gniazdowski
|
61595076da
|
*-highlight: Don't highlight closing ) with style `assign'
|
2018-06-02 19:48:29 +02:00 |
|
Sebastian Gniazdowski
|
1fc2450ab3
|
*-highlight: One complex math command optimization, top of the loop
|
2018-06-02 19:47:36 +02:00 |
|
Sebastian Gniazdowski
|
cc49247c9e
|
*-highlight: Fix improper state after assignment (command | regular)
|
2018-06-02 19:46:18 +02:00 |
|
Sebastian Gniazdowski
|
df92fedff5
|
*-highlight: Fix removal of trailing "/' when recursing in eval
|
2018-06-02 13:42:52 +02:00 |
|
Sebastian Gniazdowski
|
a5ade0e264
|
*-highlight: Recursive highlighting of eval string argument
|
2018-06-02 13:08:17 +02:00 |
|
Sebastian Gniazdowski
|
e91847b9d0
|
*-highlight: Don't recurse when not at main *-process call
|
2018-06-02 13:07:00 +02:00 |
|
Sebastian Gniazdowski
|
fca8603d0b
|
*-highlight: Support assignments of arrays when key is taken from array
|
2018-06-02 09:02:16 +02:00 |
|
Sebastian Gniazdowski
|
5d70f01f97
|
*-highlight: Math highlighting recognizes ${+VAR}
|
2018-06-02 08:49:48 +02:00 |
|
Sebastian Gniazdowski
|
c48eb0d415
|
*-highlight: Math colorizing recognizes variables in braces ${HISTISZE}
|
2018-06-02 08:47:21 +02:00 |
|
Sebastian Gniazdowski
|
53dd85a7fc
|
*-highlight: Allow -- for precommand modifiers command & exec
|
2018-06-02 08:14:56 +02:00 |
|
Sebastian Gniazdowski
|
d9fe110b83
|
*-highlight: Detect globbing also when `##' occurs
|
2018-06-02 07:50:56 +02:00 |
|
Sebastian Gniazdowski
|
988d5044b6
|
themes: Rudimentary (all same) configuration of here-string tokens #9
|
2018-06-01 22:11:29 +02:00 |
|
Sebastian Gniazdowski
|
99842d2a45
|
fast-theme,*-highlight: Support for here-string, can use bg color #9
|
2018-06-01 22:06:53 +02:00 |
|
Sebastian Gniazdowski
|
f7ee5e2546
|
fast-theme,*-highlight: Support highlighting of {FD} etc. passed to exec
|
2018-06-01 19:56:33 +02:00 |
|
Sebastian Gniazdowski
|
e5c5534199
|
*-highlight: Proper states for precmd (command,exec) option handling
|
2018-06-01 18:56:53 +02:00 |
|
Sebastian Gniazdowski
|
b39996edf3
|
*-highlight: Switch theme to secondary when descending into $() #15
|
2018-06-01 15:08:13 +02:00 |
|
Sebastian Gniazdowski
|
6dd3bd34d0
|
*-highlight: Support for multiple active themes #15
|
2018-06-01 15:01:24 +02:00 |
|
Sebastian Gniazdowski
|
8a32944433
|
*-highlight: Fix "$() found?" comparison
|
2018-06-01 14:04:54 +02:00 |
|
Sebastian Gniazdowski
|
3651605a8e
|
*-highlight: Significant change: the parser is called recursively on $()
Issue #15
|
2018-06-01 11:22:57 +02:00 |
|
Sebastian Gniazdowski
|
882d88b047
|
test,*-highlight: New -ooo performance test; highlighter takes arguments
./parse.zsh -ooo
Running time: 1.0340360000
num calls time self name
-----------------------------------------------------------------------------------
1) 100 1028,39 10,28 99,99% 810,06 8,10 78,76% -fast-highlight-process
2) 900 95,68 0,11 9,30% 95,68 0,11 9,30% -fast-highlight-string
3) 300 73,96 0,25 7,19% 73,96 0,25 7,19% -fast-highlight-math-string
4) 1600 44,58 0,03 4,33% 44,58 0,03 4,33% -fast-highlight-main-type
5) 100 4,11 0,04 0,40% 4,11 0,04 0,40% -fast-highlight-check-path
6) 1 0,13 0,13 0,01% 0,13 0,13 0,01% -fast-highlight-fill-option-variables
7) 1 0,02 0,02 0,00% 0,02 0,02 0,00% -fast-highlight-init
./parse.zsh -oo
Running time: 1.9389050000
num calls time self name
-----------------------------------------------------------------------------------
1) 350 1922,21 5,49 99,99% 1436,05 4,10 74,70% -fast-highlight-process
2) 3150 407,79 0,13 21,21% 407,79 0,13 21,21% -fast-highlight-string
3) 1400 54,71 0,04 2,85% 54,71 0,04 2,85% -fast-highlight-check-path
4) 1400 23,66 0,02 1,23% 23,66 0,02 1,23% -fast-highlight-main-type
5) 1 0,14 0,14 0,01% 0,14 0,14 0,01% -fast-highlight-fill-option-variables
6) 1 0,02 0,02 0,00% 0,02 0,02 0,00% -fast-highlight-init
|
2018-05-31 12:40:14 +02:00 |
|
Sebastian Gniazdowski
|
5ba1178afe
|
*-highlight: Optimization - compute __arg length once
./parse.zsh -oo
Running time: 1.9427760000
num calls time self name
-----------------------------------------------------------------------------------
1) 350 1925,87 5,50 99,99% 1438,99 4,11 74,71% -fast-highlight-process
2) 3150 408,18 0,13 21,19% 408,18 0,13 21,19% -fast-highlight-string
3) 1400 54,72 0,04 2,84% 54,72 0,04 2,84% -fast-highlight-check-path
4) 1400 23,98 0,02 1,24% 23,98 0,02 1,24% -fast-highlight-main-type
5) 1 0,21 0,21 0,01% 0,21 0,21 0,01% -fast-highlight-fill-option-variables
6) 1 0,03 0,03 0,00% 0,03 0,03 0,00% -fast-highlight-init
There was spark of 1914 when __asize was local not integer.
|
2018-05-31 12:19:22 +02:00 |
|
Sebastian Gniazdowski
|
b2a0126663
|
*-highlight: Allow multiple separate options for command', exec' (#10)
|
2018-05-30 18:53:46 +02:00 |
|
Sebastian Gniazdowski
|
5804e9a79d
|
*-highlight: Correct state after option for precommand (#10)
|
2018-05-30 18:49:51 +02:00 |
|
Sebastian Gniazdowski
|
1247b648cb
|
*-highlight: Simpler and more accurate option-testing for exec, command (#10)
|
2018-05-30 18:27:18 +02:00 |
|
Sebastian Gniazdowski
|
d87fed48eb
|
*-highlight: Correctly highlight options for command' and exec' (#10)
|
2018-05-30 18:22:34 +02:00 |
|
Sebastian Gniazdowski
|
8c3e75ea5e
|
*-highlight: Double-hyphen (--) stops option recognition and colorizing
|
2018-05-30 17:49:13 +02:00 |
|
Sebastian Gniazdowski
|
1c5a56c04f
|
*-highlight: Support ${VAR} at command position (not only $VAR)
|
2018-05-30 14:28:12 +02:00 |
|
Sebastian Gniazdowski
|
1bb701f34f
|
*-highlight: Move $variable highlighting from case to if-block
Current performance: ./parse.zsh -oo
Running time: 1.9366030000
num calls time self name
-----------------------------------------------------------------------------------
1) 350 1921,83 5,49 99,99% 1421,76 4,06 73,97% -fast-highlight-process
2) 3150 421,38 0,13 21,92% 421,38 0,13 21,92% -fast-highlight-string
3) 1400 55,26 0,04 2,87% 55,26 0,04 2,87% -fast-highlight-check-path
4) 1400 23,43 0,02 1,22% 23,43 0,02 1,22% -fast-highlight-main-type
5) 1 0,14 0,14 0,01% 0,14 0,14 0,01% -fast-highlight-fill-option-variables
6) 1 0,02 0,02 0,00% 0,02 0,02 0,00% -fast-highlight-init
./parse.zsh -o
Running time: 0.6343880000
num calls time self name
-----------------------------------------------------------------------------------
1) 350 622,28 1,78 99,98% 544,78 1,56 87,53% -fast-highlight-process
2) 950 34,05 0,04 5,47% 34,05 0,04 5,47% -fast-highlight-main-type
3) 700 26,97 0,04 4,33% 26,97 0,04 4,33% -fast-highlight-check-path
4) 350 16,49 0,05 2,65% 16,49 0,05 2,65% -fast-highlight-string
5) 1 0,12 0,12 0,02% 0,12 0,12 0,02% -fast-highlight-fill-option-variables
6) 1 0,02 0,02 0,00% 0,02 0,02 0,00% -fast-highlight-init
|
2018-05-29 13:07:46 +02:00 |
|
Sebastian Gniazdowski
|
b8413e93e7
|
*-highlight: For-loop highlighting, working, needs few upgrades
|
2018-05-29 12:25:40 +02:00 |
|
Sebastian Gniazdowski
|
7bec6e5782
|
*-highlight: Three more simple vs. complex math operation optimizations
|
2018-05-28 11:28:36 +02:00 |
|
Sebastian Gniazdowski
|
baae683724
|
*-highlight: Optimise complex math command into single one with & and ~
|
2018-05-27 17:22:30 +02:00 |
|
Sebastian Gniazdowski
|
2dc3103fce
|
*-highlight: Optimise complex math command into single one with & and ~
|
2018-05-27 17:14:55 +02:00 |
|
Sebastian Gniazdowski
|
d3a7922f5f
|
*-highlight: Fix in_array_assignment setting when closing ) found
|
2018-05-26 13:00:38 +02:00 |
|
Sebastian Gniazdowski
|
796c482c76
|
*-highlight: Make parameters' names exotic blank-var detection to work
|
2018-05-26 12:54:42 +02:00 |
|
Sebastian Gniazdowski
|
d2129452bd
|
*-highlight,plugin.zsh,default.ini: Uplift of fg=112-fix code
|
2018-05-26 07:57:43 +02:00 |
|
Sebastian Gniazdowski
|
ee56f65641
|
*-highlight,plugin.zsh: Final fix for fg=112 assignment – use zstyle
|
2018-05-26 07:14:24 +02:00 |
|
Sebastian Gniazdowski
|
52307fbff4
|
Theme support, 1 extra theme – `safari'
|
2018-05-25 23:25:57 +02:00 |
|
Sebastian Gniazdowski
|
41df55bb2b
|
*-highlight: (k) subscript flag is sufficient, no need for (K)
|
2018-05-25 19:50:34 +02:00 |
|
Sebastian Gniazdowski
|
a580cff2a5
|
*-highlight: FAST_BLIST_PATTERNS
|
2018-05-25 17:15:20 +02:00 |
|
Sebastian Gniazdowski
|
c34716ccb1
|
*-highlight: Highlighting for zcalc
|
2018-05-23 16:02:36 +02:00 |
|
Sebastian Gniazdowski
|
e82e9419f7
|
*-highlight: Detect assignments so that math highlighting can use it
|
2018-05-23 14:04:26 +02:00 |
|
Sebastian Gniazdowski
|
cefaac5bb6
|
*-highlight: Highlight [[ as [ (builtin). Performance results:
./parse.zsh -oo
Running time: 1.8760250000
num calls time self name
-----------------------------------------------------------------------------------
1) 350 1860,70 5,32 99,99% 1368,44 3,91 73,54% -fast-highlight-process
2) 3150 422,47 0,13 22,70% 422,47 0,13 22,70% -fast-highlight-string
3) 1400 45,88 0,03 2,47% 45,88 0,03 2,47% -fast-highlight-check-path
4) 1400 23,92 0,02 1,29% 23,92 0,02 1,29% -fast-highlight-main-type
5) 1 0,19 0,19 0,01% 0,19 0,19 0,01% -fast-highlight-fill-option-variables
6) 1 0,02 0,02 0,00% 0,02 0,02 0,00% -fast-highlight-init
It was 1812 recently, before this and previous (typeset/assign) patch.
|
2018-05-23 12:36:06 +02:00 |
|
Sebastian Gniazdowski
|
9479f4095c
|
*-highlight: typeset, etc. start assign mode – assign highlighting
|
2018-05-23 12:35:25 +02:00 |
|
Sebastian Gniazdowski
|
bd43a3376b
|
*-highlight,README.md: Bracket colorizing for array assignments
|
2018-05-22 18:56:20 +02:00 |
|
Sebastian Gniazdowski
|
a0bd54bc3f
|
*-highlight: Math-mode highlighting in assignment, when $(( is used
|
2018-05-22 01:18:24 +02:00 |
|
Sebastian Gniazdowski
|
abcf1e6105
|
*-highlight: Variable-highlight of right side of assignment if no string
|
2018-05-22 00:50:03 +02:00 |
|
Sebastian Gniazdowski
|
29ab3bea71
|
*-highlight: Highlight strings in assignments
|
2018-05-22 00:02:12 +02:00 |
|
Sebastian Gniazdowski
|
39b5464655
|
*-highlight: Detect closing quote in abc"efg"ijk and abc'efg'ijk
|
2018-05-21 21:17:19 +02:00 |
|
Sebastian Gniazdowski
|
4e35882730
|
*-highlight: Math highlighting allows $+var and ${+var}, also v_ar
|
2018-04-26 20:07:24 +02:00 |
|
Sebastian Gniazdowski
|
0be441b06e
|
*-highlight: Sophisticated math mode highlighting
|
2018-01-06 13:10:32 +01:00 |
|
Sebastian Gniazdowski
|
2637168357
|
*-highlight: Fix $(( )) in strings, highlight it outside strings
|
2018-01-06 09:22:16 +01:00 |
|
Sebastian Gniazdowski
|
631b3c3d29
|
*-highlight: Highlight (( ... )) (at command position) like strings
|
2018-01-06 09:20:19 +01:00 |
|
Sebastian Gniazdowski
|
e64af5e0ea
|
*-highlight: Comment -fast-highlight-string()
|
2018-01-05 20:00:23 +01:00 |
|
Sebastian Gniazdowski
|
779e4fdee9
|
*-highlight: Allow more characters in flags, mostly for flags' arguments
|
2018-01-05 19:58:29 +01:00 |
|
Sebastian Gniazdowski
|
50ea2e46b4
|
Revert "*highlight: For tests: revert *highlight-string optimization"
This reverts commit da259c7e36.
|
2018-01-05 18:38:01 +01:00 |
|
Sebastian Gniazdowski
|
da259c7e36
|
*highlight: For tests: revert *highlight-string optimization
|
2018-01-05 18:31:10 +01:00 |
|
Sebastian Gniazdowski
|
8a48973aeb
|
*-highlight: Support abc'xyz', for Zplugin
|
2017-12-25 06:35:54 +01:00 |
|
Sebastian Gniazdowski
|
e0f83f83d4
|
*-highlight: Update comment for previous patch
|
2017-12-25 06:32:40 +01:00 |
|
Sebastian Gniazdowski
|
556cd7d480
|
*-highlight: One pattern not needed in abc"xyz" highlighting
|
2017-12-25 06:29:36 +01:00 |
|
Sebastian Gniazdowski
|
918c2ee4be
|
*highlight: Correctly highlight abc"xyz", for Zplugin
|
2017-12-24 18:18:43 +01:00 |
|
Sebastian Gniazdowski
|
f2408e1f58
|
*-highlight: Don't use FAST namespace for command exposure – standardize
|
2017-11-27 14:11:01 +01:00 |
|
Sebastian Gniazdowski
|
37621703c0
|
*-highlight: Expose commands found in processing, in $FAST_LAST_COMMANDS
|
2017-11-27 13:30:03 +01:00 |
|
Sebastian Gniazdowski
|
ba4e16334a
|
*-highlight: Explicitly narrow down applicable licensing
|
2017-09-25 19:33:30 +02:00 |
|
Sebastian Gniazdowski
|
07a76cd381
|
No error code returned at normal situation
|
2017-07-17 10:59:57 +02:00 |
|
Sebastian Gniazdowski
|
160a23a9fc
|
Single place with buffer length boundary
|
2017-07-01 09:26:59 +02:00 |
|
Sebastian Gniazdowski
|
7d6524e6fb
|
*-highlight: Update comment to explain styles-config and 256 colors
|
2017-05-04 06:08:44 +02:00 |
|
Sebastian Gniazdowski
|
78d06f1369
|
*-highlight: Move the token types hash into FAST* namespace
|
2017-04-18 11:18:20 +02:00 |
|
Sebastian Gniazdowski
|
13aab53d3b
|
*-highlight: Accept only directories as first token
|
2017-04-13 05:09:17 +02:00 |
|
Sebastian Gniazdowski
|
33248b608b
|
*-highlight: First token can denote AUTO_CD path
|
2017-04-13 05:05:05 +02:00 |
|
Sebastian Gniazdowski
|
8c9711e325
|
*-highlight: Correctly highlight ')'
|
2017-04-10 10:35:51 +02:00 |
|
Sebastian Gniazdowski
|
ee75fa6b4a
|
*-highlight: No HSMW global parameter
|
2017-04-10 10:28:00 +02:00 |
|
Sebastian Gniazdowski
|
cb2fab2e72
|
*-highlight: [[ as braces stack element -> no command word after it
|
2017-04-10 10:19:24 +02:00 |
|
Sebastian Gniazdowski
|
16cc50eb3f
|
*-highlight: Highlight closing square bracket
|
2017-04-10 09:50:18 +02:00 |
|
Sebastian Gniazdowski
|
84fd2555e8
|
*-highlight: Use a hash instead of multiple global parameters
|
2017-04-10 09:49:56 +02:00 |
|
Sebastian Gniazdowski
|
efef7f5f24
|
*-highlight: Fix hsmw namespace of a parameter
|
2017-04-10 09:33:16 +02:00 |
|
Sebastian Gniazdowski
|
9e8be38b89
|
No activity in select CONTEXT, also no activity when buffer too large
|
2017-04-10 09:31:36 +02:00 |
|
Sebastian Gniazdowski
|
e91f5b78cf
|
Remove setting of HSMW global parameter
|
2017-03-28 08:39:44 +02:00 |
|
Sebastian Gniazdowski
|
63b2663ec7
|
Support PREBUFFER
|
2017-03-28 08:39:27 +02:00 |
|
Sebastian Gniazdowski
|
7ee2409187
|
Initial commit
|
2017-03-26 09:31:58 +02:00 |
|