/q-intellij-plugin

Primary LanguageJavaMIT LicenseMIT

q-intellij-plugin

q/k4 language (kx.com) plugin for IntelliJ IDEA. For k3 support, see k3-intellij-plugin

Features

This plugin supports q/k4 syntax. Features include:

  • Syntax highlighting
  • Navigate to declaration
  • Code completion
  • Find usages
  • Rename refactoring
  • File structure
  • Go to symbol
  • Color settings
  • Code folding

Installation

  1. Go to Preferences -> Plugins
  2. Click on Browse Repositories... and select the Languages category
  3. Look for the q plugin and click Install

Building from sources

  1. Configure an IntelliJ Platform SDK following these instructions.
  2. Make sure the Grammar-Kit and PsiViewer plugins are installed.
  3. Clone this repository.
  4. Open it as an IntelliJ IDEA project.
  5. Open src/main/resources/com/appian/intellij/k/k.flex file and generate the lexer code (*)
  6. Open src/main/resources/com/appian/intellij/k/k.bnf file and generate the parser code (*)
  7. Build the project. Make sure the project is configured to use the IntelliJ Platform SDK configured in step 1.

(*) either from a context menu or using the keyboard shortcut ⇧⌘G