othree/yajs.vim

Class property ternary operator

Closed this issue · 5 comments

Class property defined as ternary operator, with object property condition and value defined as template string breaks syntax highlighting.
image

Please install for class property initializer https://github.com/othree/es.next.syntax.vim

Thx for quick response, and your great plugins! It has already been installed. Maybe I'm doing sth wrong. Here is my vimrc

call plug#begin('~/.vim/plugged')

Plug 'NLKNguyen/papercolor-theme'
Plug 'othree/es.next.syntax.vim'
Plug 'othree/yajs.vim'

call plug#end()

set nocompatible
set shell=bash
set fileencoding=utf-8
set encoding=utf-8
set termencoding=utf-8

filetype plugin on
filetype indent on

syntax enable

set t_Co=256
set background=dark
colorscheme PaperColor

Also maybe it matters

VIM - Vi IMproved 8.0 (2016 Sep 12, compiled Dec 22 2016 14:12:34)
MacOS X (unix) version
Included patches: 1-134
Compiled by Homebrew
Huge version without GUI.  Features included (+) or not (-):
+acl             +file_in_path    +mouse_sgr       +tag_old_static
+arabic          +find_in_path    -mouse_sysmouse  -tag_any_white
+autocmd         +float           +mouse_urxvt     -tcl
-balloon_eval    +folding         +mouse_xterm     +termguicolors
-browse          -footer          +multi_byte      +terminfo
++builtin_terms  +fork()          +multi_lang      +termresponse
+byte_offset     -gettext         -mzscheme        +textobjects
+channel         -hangul_input    +netbeans_intg   +timers
+cindent         +iconv           +num64           +title
-clientserver    +insert_expand   +packages        -toolbar
+clipboard       +job             +path_extra      +user_commands
+cmdline_compl   +jumplist        +perl            +vertsplit
+cmdline_hist    +keymap          +persistent_undo +virtualedit
+cmdline_info    +lambda          +postscript      +visual
+comments        +langmap         +printer         +visualextra
+conceal         +libcall         +profile         +viminfo
+cryptv          +linebreak       +python          +vreplace
+cscope          +lispindent      -python3         +wildignore
+cursorbind      +listcmds        +quickfix        +wildmenu
+cursorshape     +localmap        +reltime         +windows
+dialog_con      +lua             +rightleft       +writebackup
+diff            +menu            +ruby            -X11
+digraphs        +mksession       +scrollbind      -xfontset
-dnd             +modify_fname    +signs           -xim
-ebcdic          +mouse           +smartindent     -xpm
+emacs_tags      -mouseshape      +startuptime     -xsmp
+eval            +mouse_dec       +statusline      -xterm_clipboard
+ex_extra        -mouse_gpm       -sun_workshop    -xterm_save
+extra_search    -mouse_jsbterm   +syntax
+farsi           +mouse_netterm   +tag_binary

It didn't help. It seems that class property works.
image

But if in expression try to access object property - it stops working
image

Thanks, the order indeed not means here.
I forgot I already use after/ to control the order of the execution.