Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 1 commit into from
Nov 29, 2024
Merged

Conversation

mazarijuraj
Copy link
Contributor

@mazarijuraj mazarijuraj commented Nov 28, 2024

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
5 checks passed
@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