Skip to content

Trigger.new breaks following syntax highlighting  #9

Description

@jonathanwiesel

If you're working with triggers and do something like this:

for(Opportunity opp : Trigger.new){
     if(opp.Status != "Closed Won" && opp.Amount > 100000){
        ...
     }
}

The syntax highlighting for the if and && keyword goes wrong. This is because the new keyword is behaving like a new object instantiation.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions