Skip to content

Releases: Phidica/sublime-fish

2.4.0

16 Apr 11:51
Compare
Choose a tag to compare

Improvements:

  • Support the [ ] form of test (#8)
  • Highlight a ~ in redirect paths
  • Distinguish arguments which might be paths with meta.parameter.argument.path
  • Distinguish option and argument parameter types, and long and short option types (as well as the "end of options" option).
    We now provide the following scopes:
    • meta.parameter.option.long
    • meta.parameter.option.short
    • meta.parameter.option.end
    • meta.parameter.argument
    • punctuation.definition.option.long.begin
    • punctuation.definition.option.long.separator
    • punctuation.definition.option.short
    • punctuation.definition.option.end
  • Distinguish operator types.
    We now provide the following scopes:
    • keyword.operator.control
    • keyword.operator.pipe
    • keyword.operator.redirect
    • keyword.operator.range

Bugfixes:

  • Some structures were not highlighted correctly if they were immediately followed by the EOF
  • Unescaped spaces in brace expansion weren't marked up as invalid
  • Quoted integers were not allowed as file descriptors in redirection

Internal changes:

  • Rename "argument" to "parameter"
  • Rename "nonoption argument" to "argument"
  • Rename "command chain" to "pipeline"

2.3.0

11 Nov 07:54
Compare
Choose a tag to compare

New feature:

  • Automatic indentation and prettification of fish files (#16):
    • Utilises the fish_indent program that comes with fish
    • Compatible with Sublime Text 2 and 3 on all platforms
      • No additional configuration is necessary for standard fish installs
    • Indentation respects user preferences of tab size
    • Indentation is restricted to highlighted regions if any are present, otherwise the full file is acted on
    • Default shortcut for indentation is ctrl+alt+i
    • Build system execution is also available
    • Optionally, turn on automatic indentation at every save in settings

Bugfixes:

  • A block would not scope correctly if an & appeared immediately before the end command
  • Redirected piping would not scope correctly under builtin, command, or exec
  • Escaping a newline could extend the scope one line too far

2.2.6

17 Jun 13:21
Compare
Choose a tag to compare

Bugfixes:

  • ST2 would freeze encountering consecutive command substitutions (#14)
  • ST2 would freeze encountering consecutive variable expansions (#14)
  • end at end of file wasn't highlighted correctly (#15)

2.2.5

16 Jun 07:21
Compare
Choose a tag to compare

Bugfixes:

  • ST2 would freeze encountering an escaped newline (#14)
  • ST2 would freeze encountering a pipe (#14)
  • not wasn't recognised in a command chain

2.2.4

13 Jun 12:16
Compare
Choose a tag to compare

Bugfix:

  • Control characters appearing in brace expansion would freeze ST2 (#14)

2.2.3

14 Nov 03:43
Compare
Choose a tag to compare

Bugfix:

  • Menu options could not open the README or CHANGELOG files

2.2.2

13 Nov 13:31
Compare
Choose a tag to compare

Bugfix:

  • Snippets did not use tabs for indenting (#12)

2.2.1

31 Oct 12:08
Compare
Choose a tag to compare

Bugfix:

  • An argument consisting of a lone - was scoped as an option

2.2.0

30 Oct 13:09
Compare
Choose a tag to compare

Improvement:

  • Make numeric scoping more consistent, and now recognise numbers starting with a plus or minus sign.
    After the end of options argument --, an argument like -5 will be scoped as numeric rather than as an option. Additionally, recognition of sign is important for when numbers are used in index expansion

Bugfix:

  • Redirected process expansion failed to recognise special names like "self"

2.1.2

24 Oct 10:11
Compare
Choose a tag to compare

Bugfixes:

  • A command call line ending with = did not terminate
  • An = could not safely be a command name