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

eazy​BI MDX

by SKrooshof ALL

eazyBI MDX syntax highlighting for Sublime Text.

Details

Installs

  • Total 81
  • Win 34
  • Mac 37
  • Linux 10
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 Oct 7 Oct 6 Oct 5 Oct 4 Oct 3 Oct 2 Oct 1 Sep 30 Sep 29 Sep 28 Sep 27 Sep 26 Sep 25 Sep 24 Sep 23 Sep 22 Sep 21 Sep 20 Sep 19 Sep 18 Sep 17 Sep 16 Sep 15 Sep 14 Sep 13 Sep 12 Sep 11 Sep 10 Sep 9
Windows 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 1 0 0 1 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
Mac 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 0 0 0 0 0 0 0 0 0 0 0 0 0 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 1 0 0

Readme

Source
raw.​githubusercontent.​com

eazyBI MDX for Sublime Text

Syntax highlighting for eazyBI calculated measures and members in Sublime Text. This package supports Multidimensional Expressions (MDX), the language used to query OLAP cubes. For the supported eazyBI functions, see the MDX function reference. Markdown + JSX is a different language that also uses the .mdx extension.

Highlighting

  • eazyBI and MDX functions, including Sum, Filter, CatchException, DateInPeriod, and Cast.
  • Control keywords such as CASE, WHEN, THEN, ELSE, and END.
  • Identifiers, brackets, numbers, quoted strings, and arithmetic and logical operators.
  • -- line comments and inline or multiline /* ... */ block comments.

Tested with Sublime Text 4215, including 23 block-comment regression assertions and a visual check. Colors depend on your selected color scheme.

eazyBI MDX in Sublime Text, showing functions, strings, and line and block comments

The screenshot uses example.mdx, a calculated-measure example for an eazyBI Jira cube.

Installation

Package Control (recommended)

If needed, install Package Control first.

  1. Open the Command Palette: Cmd+Shift+P on macOS, or Ctrl+Shift+P on Windows and Linux.
  2. Select Package Control: Install Package.
  3. Search for eazyBI MDX and select it.
  4. Open a .mdx file. The syntax name is MDX; if another package handles this extension, choose View > Syntax > MDX.

Manual installation

  1. Download MDX.sublime-syntax.
  2. In Sublime Text, choose Preferences > Browse Packages.
  3. Create a folder named eazyBI MDX there and put MDX.sublime-syntax inside it.
  4. Open a .mdx file and select View > Syntax > MDX if needed.

A manual eazyBI MDX folder takes precedence over the Package Control version. Remove that folder when you want to use Package Control updates again.

Contributing

Open an issue or submit a pull request. For a highlighting bug, include:

  • Your Sublime Text build, operating system, and eazyBI MDX package version.
  • A minimal MDX example that reproduces the problem.
  • The expected highlighting and what you see instead; a screenshot can help.
  • Confirmation that the active syntax is MDX.

Run the syntax tests

  1. Choose Preferences > Browse Packages and create or open the eazyBI MDX folder.
  2. Copy MDX.sublime-syntax and syntax_test_comments.mdx from your checkout into that folder.
  3. Open the copied syntax_test_comments.mdx in Sublime Text.
  4. Choose Tools > Build System > Syntax Tests, then Tools > Build (Cmd+B on macOS; Ctrl+B on Windows and Linux).
  5. Check the output panel for passing results. The current block-comment fixture contains 23 assertions.

Keep the folder name exactly eazyBI MDX: the test header references Packages/eazyBI MDX/MDX.sublime-syntax. After editing the syntax or fixture, update the copies before rerunning the tests. See Sublime Text's syntax-test documentation for the assertion format.

Open example.mdx for a visual check as well: line and block comments should use comment colors, quoted text should use string colors, and highlighting should resume after */.

License

MIT.