Skip to content
This repository has been archived by the owner on Mar 21, 2023. It is now read-only.

Add syntax coloring for editing rules #162

Open
thomasdarimont opened this issue Feb 21, 2017 · 3 comments
Open

Add syntax coloring for editing rules #162

thomasdarimont opened this issue Feb 21, 2017 · 3 comments

Comments

@thomasdarimont
Copy link

Problem description

No syntax highlighting for rule editing.

Steps to reproduce the problem

  1. Edit a pipeline rule

Environment

  • Graylog Version: 2.2.1-1 (DockerHub Image)
  • Pipeline Processor plugin version: 2.2.1-1

FYI The (currently) latest version of brace (0.9.1) supports a drools highlighter.

@joschi
Copy link
Contributor

joschi commented Feb 21, 2017

@thomasdarimont FYI, the syntax used in this plugin is not identical to the Drools syntax.

@joschi joschi added the feature label Feb 21, 2017
@thomasdarimont
Copy link
Author

Oh sorry - didn't pay enough attention. Was confused by the stream rules and
already wondered about the custom grammar in the plugin... the graylog rabbit hole is pretty deep :)

I change the title to just syntax coloring then.

@thomasdarimont thomasdarimont changed the title Add drools syntax coloring for editing rules Add syntax coloring for editing rules Feb 21, 2017
@thomasdarimont
Copy link
Author

I build small custom ace editor configuration that highlights the graylog rulelang source quite nicely.

If you'd like to give it a try have a look at this gist

I'm now trying to figure out how to built this in.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants