Page 14 of 20

Re: PowerShellFar — Windows PowerShell host for Far Manager

Posted: Thu 29 Mar, 2012 18:06
by NightRoman

Latest post of the previous page:

http://farnet.googlecode.com/files/Colo ... 3291754.7z
ColorerPack

*About-ColorerPack*

- Explained *powershell.hrc* features, including new.

*powershell.hrc*

Regex

- Regex syntax in regex operands: also with here-strings.
- Regex syntax in strings after `[regex]` and `<#regex#>`.
- Removed the old trick with `#REGEX` in here-strings.

SQL

- SQL syntax in here-strings after `<#sql#>`
- Removed the old trick with `--SQL`.

*visual.hrd*

- `def:StringContent` (commonly used for escaping). Background is highlighted,
foreground is inherited from the context, this seems to be more informative.
- `xml:CData` color changed from `def:default`.
- `c:PreprocInclude` color is VS color.

Re: PowerShellFar — Windows PowerShell host for Far Manager

Posted: Thu 29 Mar, 2012 18:23
by NightRoman
http://code.google.com/p/farnet/downloads/list
(+ FarNet and API documentation)

= 5.0.20 =

Adapted a few scripts to new powershell.hrc features.

Re: PowerShellFar — Windows PowerShell host for Far Manager

Posted: Sun 01 Apr, 2012 07:03
by NightRoman
http://farnet.googlecode.com/files/Colo ... 4010658.7z
ColorerPack

*r.hrc*

- A new scheme of the programming language R. Wikipedia

*powershell.hrc*

- Added yet missing operator `!`.
- Added reserved operators `&&`, `||` (as errors).

Re: PowerShellFar — Windows PowerShell host for Far Manager

Posted: Mon 09 Apr, 2012 18:29
by NightRoman
http://farnet.googlecode.com/files/Colo ... 4091831.7z
ColorerPack

*powershell.hrc*

- Added `, ; & ::` operators and V3 redirection operators.
- Colored attributes, some loop labels, variable prefixes.
- Fixed `if`, `for`, ... after `param()`.
- Improved:
- `switch`
- `foreach( in )`
- here-string error areas
- type syntax, including generics and arrays
- name patterns of function, filter, data, task

Re: PowerShellFar — Windows PowerShell host for Far Manager

Posted: Wed 11 Apr, 2012 07:08
by NightRoman
http://farnet.googlecode.com/files/Colo ... 4110712.7z
ColorerPack.1204110712

*powershell.hrc*

- Fixed case sensitivity of `in` in `foreach`.
- Resolved false keyword colors in many cases.
- Improved `param, begin, process, end, if, else, elseif, try, catch, finally,
trap` blocks: multiline syntax including comments, dual start/end pairs, etc.

Re: PowerShellFar — Windows PowerShell host for Far Manager

Posted: Thu 12 Apr, 2012 00:30
by NightRoman
http://farnet.googlecode.com/files/Colo ... 4120032.7z
ColorerPack.1204120032

*powershell.hrc*

- Improved syntax of `do, for, foreach, while, function, filter, workflow, switch` blocks.
- Corrected and improved syntax of `data` sections (still simplified).
- Added `dynamicparam` block and auto-variable `$PSItem`.
- Removed not really useful reserved keywords.
- Simplified code related to improved blocks.
- Fixed a minor defect in loop labels.

*r.hrc*

- Amended outlined comments `###`.
- Optimized by eating spaces.

Re: PowerShellFar — Windows PowerShell host for Far Manager

Posted: Thu 12 Apr, 2012 16:57
by NightRoman
http://farnet.googlecode.com/files/Colo ... 4121655.7z
ColorerPack.1204121655

*powershell.hrc*

- Optimized by eating spaces (about 20% faster).

Re: PowerShellFar — Windows PowerShell host for Far Manager

Posted: Sat 14 Apr, 2012 05:59
by NightRoman
http://farnet.googlecode.com/files/Colo ... 4140602.7z
ColorerPack.1204140602

*powershell.hrc*

- Amended `switch` block. In particular:
- fixed use of `default` as a keyword
- fixed context of inner blocks

- Simplified `data` block.

Re: PowerShellFar — Windows PowerShell host for Far Manager

Posted: Sun 15 Apr, 2012 18:20
by NightRoman
http://farnet.googlecode.com/files/Colo ... 4151817.7z
ColorerPack.1204151817

*powershell.hrc*

- Added member access and invocation operators `. ::`.
- Corrected some ambiguous operator-or-literal cases.
- Colored loop labels in `break continue`.

Re: PowerShellFar — Windows PowerShell host for Far Manager

Posted: Tue 17 Apr, 2012 17:19
by NightRoman
http://farnet.googlecode.com/files/Colo ... 4171716.7z
ColorerPack.1204171716

*powershell.hrc*

- Commands invoked by `& .` are fully parsed and colored (command name,
parameters, and arguments are different things now). True parsing of all
commands is coming soon.
- Improved parsing and colors of script parameter attributes.
- Amended parsing of hash literals.

Re: PowerShellFar — Windows PowerShell host for Far Manager

Posted: Wed 18 Apr, 2012 17:51
by NightRoman
http://farnet.googlecode.com/files/Colo ... 4181749.7z
ColorerPack.1204181749

*powershell.hrc*

- All commands are fully parsed. This is the major improvement and the code
looks more informative, at least with *visual.hrd*. There are a few known
cases of scheme confusion, nothing serious. To be continued.
- New colors and areas: Argument, HashKey, StringEdge.
- Amended function parameter list, hash tables, etc.

*visual.hrd*

- def:TODO colors are inverted comment colors (look more comfortable).

Re: PowerShellFar — Windows PowerShell host for Far Manager

Posted: Thu 19 Apr, 2012 18:29
by NightRoman
http://farnet.googlecode.com/files/Colo ... 4191826.7z
ColorerPack.1204191826

*powershell.hrc*

- Colored optional elements of `switch` and `data`.
- Fixed many of recently added known issues, not all yet.

Re: PowerShellFar — Windows PowerShell host for Far Manager

Posted: Fri 20 Apr, 2012 18:00
by NightRoman
http://farnet.googlecode.com/files/Colo ... 4201758.7z
ColorerPack.1204201758

*powershell.hrc*

- Many major improvements, PowerShell syntax parsing is almost fair now. At the
same time the scheme is simpler and it works about 25% faster.
- Resolved most of known issues, both recently added and very old. Other known
issues are rather exotic, some of them will be fixed later, some never.
- "Breaking" change: no spaces are allowed between conventional comments
`<#sql#> <#regex#>` and following string edges.

Re: PowerShellFar — Windows PowerShell host for Far Manager

Posted: Sun 22 Apr, 2012 09:37
by NightRoman
http://farnet.googlecode.com/files/Colo ... 4220940.7z
ColorerPack.1204220940

*powershell.hrc*

- Fixed the region of `.` on invocation of script blocks and expressions.
- Amended syntax after `break continue throw return exit`.
- Amended syntax of redirection including V3 new features.
- Dropped outlined global/script variable assignment.
- Amended parameter list, outlined parameters.
- Added operators `-in -notin` (V3).
- Refactoring and optimization.

Re: PowerShellFar — Windows PowerShell host for Far Manager

Posted: Sat 28 Apr, 2012 03:20
by NightRoman
http://code.google.com/p/farnet/downloads/list
(+ FarNet and API documentation)

= 5.0.24 =

The stepper engine uses new IFar.PostSteps().

Adapted scripts to changes in `powershell.hrc`.

+

http://farnet.googlecode.com/files/Colo ... 4280322.7z
ColorerPack.1204280322

*powershell.hrc*

- Reviewed list of known cmdlets (V3 included).

Re: PowerShellFar — Windows PowerShell host for Far Manager

Posted: Sun 06 May, 2012 16:39
by NightRoman
http://farnet.googlecode.com/files/Colo ... 5061641.7z
ColorerPack.1205061641

*powershell.hrc*

- Corrected use of the operator `@`.
- Fixed `|` in the end of line comments.
- Minor tweaks, improved performance (~5%).