ctrl+shift+p filters: :st2 :st3 :win :osx :linux
Browse

ASL Syntax Highlight

by Fansaly ST3

Sublime Text syntax highlighting for ACPI Source Language

Details

  • 2.0.0
    1.1.1
  • github.​com
  • github.​com
  • 4 weeks ago
  • 5 hours ago
  • 8 years ago

Installs

  • Total 1K
  • Win 767
  • Mac 357
  • Linux 140
Nov 22 Nov 21 Nov 20 Nov 19 Nov 18 Nov 17 Nov 16 Nov 15 Nov 14 Nov 13 Nov 12 Nov 11 Nov 10 Nov 9 Nov 8 Nov 7 Nov 6 Nov 5 Nov 4 Nov 3 Nov 2 Nov 1 Oct 31 Oct 30 Oct 29 Oct 28 Oct 27 Oct 26 Oct 25 Oct 24 Oct 23 Oct 22 Oct 21 Oct 20 Oct 19 Oct 18 Oct 17 Oct 16 Oct 15 Oct 14 Oct 13 Oct 12 Oct 11 Oct 10 Oct 9 Oct 8
Windows 1 0 0 0 1 0 0 0 0 1 1 1 0 0 0 0 0 0 0 0 2 1 2 0 0 0 1 1 0 0 0 2 0 0 0 0 1 0 0 0 0 1 1 1 0 0
Mac 0 0 0 0 0 0 1 0 0 0 1 0 0 0 0 0 0 0 0 0 1 2 0 0 0 1 1 1 0 0 0 0 0 0 1 0 1 1 0 0 0 0 0 1 0 0
Linux 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1

Readme

Source
raw.​githubusercontent.​com

ASL Syntax Highlight

Syntax highlighting and completions for the ACPI Source Language (ASL) in Sublime Text 4.

Requires Sublime Text 4 (build 4000 or newer). The 1.x version for Sublime Text 3 is archived in the v1 branch.

screenshot

Features

  • Highlights .asl, .dsl, and .asi files.
  • ASL keywords are matched case-insensitively, as required by the ACPI specification.
  • Keyword data is based on ACPI 6.6 and current ACPICA, including:
    • declarations and control flow
    • ASL operators
    • resource descriptor macros
    • field access, resource, and object-type flags
    • predefined _ names
    • iASL preprocessor directives and built-in macros
  • Builds symbol entries for Method, Device, Scope, Name, and other declarations.
  • Provides completion snippets and descriptions for common ASL constructs, operators, resource macros, predefined names, and preprocessor directives.
  • Supports indented/continued preprocessor directives.

Install

  • Via Package Control: search for ASL Syntax Highlight.
  • Manual: clone this repository into your Sublime Text Packages directory and restart Sublime Text.

Completions

Start typing an ASL keyword, operator, resource macro, or predefined name and press Ctrl+Space if the completion popup does not appear automatically. Declaration completions insert full blocks with tab stops, for example:

Error: language “asl” is not supported
Method (MTHD, 0, NotSerialized)
{
}

Development

See tests/README.md for instructions on running the syntax tests.

License

MIT