Nova

Extensions


Readme

Parser 3 extension

The extension provides Parser 3 syntax highlighting and code completion. Includes support for HTML, CSS and SQL.

Requirements

Syntax support is implemented for Parser 3.4.5 and 3.4.6

Extension support: .html, .p, .pt, .p3

Parser 3 clips

  • copyright: the copyright header

Parser 3 theme color concept

  • Parser 3: shades of green and blue
  • SQL: light purple
  • HTML: light brown
  • CSS: multicoloured yet
  • Text, strings: white and light yellow
  • Numbers: shades of red

Parser 3

Simple and convenient object-oriented language which allows creating good sites in short time.

  • Cares about your security
  • Detailed language documentation
  • XML, XSL, XPath and DOM support
  • JSON and memcached support
  • Support of object-oriented programmers
  • Native UTF-8 support (as well as other code pages)
  • Uniformed database support (MySQL, PgSQL, Oracle, SQLite and ODBC)
  • Available in source code and Linux distributions

More information on http://www.parser.ru/en/


Changelog

Version 0.5.3

Added: - special charsets: ^#0A, ^#09 - now the sql methods with description and variations: single-line, multi-line, multi-line w/options

Fix: - SQL-autocomplete

Version 0.5.2

Added: - clean transformation type

Fix: - ^taint[transformation type;string]

Version 0.5

Support for the new version of Parser 3.4.6

Added: - Configuration variables: $CHARSETS, $LOCALS, $STRICT-VARS, $HTTPD, $cfg - Descriptions: foreach (hash), list (file), sql (table) - Completions string.base64, file.base64 options: $.pad(), $.url-safe(), $.wrap() - Completions: instance property description - New features of math:convert - HTTPD methods: @config[cfg] and @preprocess[] - ^math:uuid[] with options - ^image::measure[] options - file:list options: $.filter[], $.stat[] - ^memory:auto-compact() - ^table.rename[] - curl option: $.http_version[val] - file copy options: $.append(true) - locals — method property, 'piece' — table attribute after splitting a string - ^hash.select[],^hash.reverse[] - ^date::today(shift in days) and description of constructors - ^use[] with options

Fix: - Instance method name with numbers

Version 0.4.14

Added:

  • Few completions description (void:sql)
  • LAST_INSERT_ID (SQL)

Version 0.4.13

Added:

  • Clips: the copyright header. Just type copyright and press Enter. Supported syntaxes: Parser 3, HTML, XML, CSS, JS, SASS/SCSS, SQL.

Version 0.4.12

Added:

  • Basic compatibility with Nova 4

Fix:

  • highlighting variables with -

Version 0.4.11

Added:

  • Escaping variables

Changed:

  • Colouring of the arguments separator in the methods
  • Numbers color

Version 0.4.10

Added:

  • TODO, FIX and FIXME in the single comments: display in the Symbol tree and highlighting in the code. Example of use:
    # TODO: Hello, world!
    # FIX: diseases and wars on this planet!

Version 0.4.9

Added a donation button. Now you can support the development of the Parser 3 extension.

Version 0.4.8

Added:

  • completion for the SQL LIMIT
  • the if statement is divided into single-line and multi-line
  • highlighting Parser 3 charsets
  • added a description of Parser 3 theme color concept

Changed:

  • Parser 3 theme

Version 0.4.7

Changed:

  • Parser 3 theme

Fix:

  • minor highlighting fixes

Version 0.4.6

Added:

  • highlighting and completing variables in brackets, such as ${some}
  • highlighting properties in brackets, such as $.[Hello world][!]
  • highlighting and completing user properties

Fix:

  • highlighting variables starting with numbers
  • completion doesn't offer user methods in fields (after the dot)

Version 0.4.5

Added:

  • fields $SQL.connect-string, $request:charset

Changed:

  • Parser 3 theme

Fix:

  • violation of the theme when the text is adjacent to the closing bracket
  • color violation in code blocks []

Version 0.4.4

Added:

  • highlighting and completing user defined classes
  • static fields $response:location and $response:refresh

Changed:

  • disabled highlighting regex string

Version 0.4.3

Added:

  • highlighting regex string with comments to parts of expressions (complex expressions may not be highlighted correctly)

Changed:

  • Parser 3 theme (brackets, regex string)
  • duplicate variables are available again (the chicken and egg problem)

Fix:

  • auto-completion ^regex::create[]

Version 0.4.2

Added:

  • comments to parts of expressions

    ``` ^if( def $fruit # Do I have any fruit? && $fruit eq banana # Could it be a banana? ){ I have fruit! }

    ^eval( 3+2 # equal to 5 )

    $abc( 3*2 # equal to 6 ) ```

Changed:

  • variables $result,$exception,$key, $value, $CLASS_PATH, $LIMITS, $MAIN, $MAIL, $MIME-TYPES and $SQL no longer duplicated in auto-completion

Version 0.4.1

Added:

  • highlighting and completing logical operators, boolean values, exceptions types and class types for logical conditions only
  • $result and $exception variable
  • $exception fields (type, source etc.)
  • highlighting properties for exception, hash, image, status
  • SQL completing only at the first level in the sql block (like ^void:sql{...}). Nested blocks (if, switch etc.) will only highlight SQL operators.

Changed:

  • Parser 3 theme

Version 0.4

Switching to deeper work with Parser 3 blocks.

Added:

  • highlighting and completing the transformation type for the tainted context only

    ^apply-taint[transformation type][...] ^taint[transformation type][...] ^untaint[transformation type]{...}

Fix:

  • highlighting apply-taint, taint and untaint

Version 0.3.9

Added:

  • all supported curl options
  • HTML and CSS support (experimental feature)

Changed:

  • Parser 3 theme

Version 0.3.8

Changed:

  • Multiline comment ^rem{...} by default (⌘+/). Unfortunately, a single-line comment # doesn't work by keyboard shortcut.
  • Parser 3 theme

Added:

  • few curl options
  • few sql keywords
  • highlighting class types

Version 0.3.7

Added:

  • Parser 3 theme (initial release)

Fix:

  • version 0.3.6 doesn't work correctly

Version 0.3.6

Added:

  • SQL support

Version 0.3.5

Added:

  • xnode
  • few xdoc options
  • xdoc constants

Version 0.3.4

Added:

  • few options
  • options description

Version 0.3.3

Added:

  • user variables autocomplete

Version 0.3.2

Added:

  • user methods autocomplete with description (from the comments above)
  • xdoc methods and fields
  • instance methods and fields descriptions

Version 0.3

Initial release. Basic language support.


License

MIT License

Copyright (c) 2020 Ivan Sergeev

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.