nixeagle / ooc-mode

9 stars 2 forks source link

YAHE (Yet Another Highlighting Error) #14

Closed solson closed 14 years ago

solson commented 14 years ago
// check for an alphanumeric character
isAlphaNumeric: func -> Bool {
    isAlpha() || isDigit()
}

// check for an alphabetic character
isAlpha: func -> Bool {
    isLower() || isUpper()
}

In these functions, isDigit and isUpper (the right sides of ||) are highlighted as variable definitions. They shouldn't have any special highlighting, just the default colour like the left side of ||.

nixeagle commented 14 years ago

This triggers after something like: || func()

This happens because the inline lambda arg stuff |arg| seems to be a little too greedy.

nixeagle commented 14 years ago

Ensure arguments exist in inline lambda list before triggering highlight.

Closed by 8a9b5649ab43e7179bf7a353879dd7b39524bb72