Skip to content

[NAB-362] Action editor interpolated string highlight#17

Merged
mazarijuraj merged 1 commit into
nextfrom
NAB-362
Nov 29, 2024
Merged

[NAB-362] Action editor interpolated string highlight#17
mazarijuraj merged 1 commit into
nextfrom
NAB-362

Conversation

@mazarijuraj

@mazarijuraj mazarijuraj commented Nov 28, 2024

Copy link
Copy Markdown
Contributor

Description

Update token provider for action editor

Fixes NAB-362

How Has Been This Tested?

Using code snippet from Intellij Idea for showcasing color scheme and comparing to old version.

package highlighting
###

/**
* This is Groovydoc comment
* @see java.lang.String#equals
*/
@Annotation(parameter = 'value')
class C {

  def property = new I() {}
  static def staticProperty = []

  C() {}

  def <T> T instanceMethod(T parameter, reassignedParameter) {
    reassignedParameter = 1
    //This is a line comment
    return parameter
  }

  def getStuff() { 42 }
  static boolean isStaticStuff() { true }

  static def staticMethod(int i) {
    /* This is a block comment */
    Map map = [key1: 1, key2: 2, (22): 33]

    def cl = { a -> a }
    def lambda = b -> { b }

    File f = ['path']
    def a = 'JetBrains'.matches(/Jw+Bw+/)

    label:
    for (entry in map) {
      if (entry.value > 1 && i < 2) {
        a = unresolvedReference
        continue label
      } else {
        a = entry
      }
    }

    print map.key1
  }
}

def c = new C()
c.instanceMethod("Hello\n", 'world\x')
println c.stuff

C.staticMethod(namedArg: 1)
C.staticStuff

abstract class AbstractClass {}
interface I {}
trait T {}
enum E {}
@interface Annotation {
  String parameter()
}

- update monaco petriflow definition, remove regex highlight due to collision with comments
@mazarijuraj mazarijuraj requested a review from tuplle November 28, 2024 08:21
@mazarijuraj mazarijuraj self-assigned this Nov 28, 2024
@mazarijuraj mazarijuraj merged commit b60c760 into next Nov 29, 2024
@mazarijuraj mazarijuraj deleted the NAB-362 branch November 29, 2024 08:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant