     @insertNlJsx = new InsertNlJsx(@editor)
     @autoJsx = atom.config.get('language-babel').autoIndentJSX
     # regex to search for tag open/close tag and close tag
-    @JSXREGEXP = /(<)([$_A-Za-z](?:[$_.:\-A-Za-z0-9])*)|(\/>)|(<\/)([$_A-Za-z](?:[$._:\-A-Za-z0-9])*)(>)|(>)|({)|(})|(\?)|(:)/g
+    @JSXREGEXP = /(<)([$_A-Za-z](?:[$_.:\-A-Za-z0-9])*)|(\/>)|(<\/)([$_A-Za-z](?:[$._:\-A-Za-z0-9])*)(>)|(>)|({)|(})|(\?)|(:)|(if)|(else)/g
     @mouseUp = true
     @multipleCursorTrigger = 1
     @disposables = new CompositeDisposable()

BRACE_CLOSE             = 9       # Javascript brace
TERNARY_IF              = 10      # Ternary ?
TERNARY_ELSE            = 11      # Ternary :

# eslint property values
TAGALIGNED    = 'tag-aligned'

    else if match[11]?
      if 'keyword.operator.ternary.js' is scope
        return TERNARY_ELSE
    else if match[12]?
      if 'keyword.control.conditional.js' is scope
        return JS_IF
    else if match[13]?
      if 'keyword.control.conditional.js' is scope
        return JS_ELSE
    return NO_TOKEN


