Skip to content
This repository has been archived by the owner on Jan 2, 2020. It is now read-only.

Hyper on method call causes incorrect highlighting #2

Open
0racle opened this issue Sep 8, 2016 · 3 comments
Open

Hyper on method call causes incorrect highlighting #2

0racle opened this issue Sep 8, 2016 · 3 comments

Comments

@0racle
Copy link
Contributor

0racle commented Sep 8, 2016

Description of issue

When using the hyper » op to perform a method call, all subsequent method calls (which are normally un-highlighted/white) are highlighted incorrectly until a character appears that has a specific color.

Screenshot of the issue:

Screenshot

Above screenshot taken using the 256-color jellybeans color scheme.

Sample code:

# Blue methods after hyper method call
@arr.words».tc.join.split().comb».join.split[0];

# No issues seen on normal method call
@arr.words.join.split.join.comb.subst(1, 1).tclc;

Link to vimrc

vimrc

Output of vim --version

VIM - Vi IMproved 7.4 (2013 Aug 10, compiled Oct 21 2015 12:30:04)
Included patches: 1-712
Modified by [email protected]
Compiled by buildd@
Huge version without GUI.  Features included (+) or not (-):
+acl             +farsi           +mouse_netterm   +syntax
+arabic          +file_in_path    +mouse_sgr       +tag_binary
+autocmd         +find_in_path    -mouse_sysmouse  +tag_old_static
-balloon_eval    +float           +mouse_urxvt     -tag_any_white
-browse          +folding         +mouse_xterm     -tcl
++builtin_terms  -footer          +multi_byte      +terminfo
+byte_offset     +fork()          +multi_lang      +termresponse
+cindent         +gettext         -mzscheme        +textobjects
-clientserver    -hangul_input    +netbeans_intg   +title
-clipboard       +iconv           +path_extra      -toolbar
+cmdline_compl   +insert_expand   -perl            +user_commands
+cmdline_hist    +jumplist        +persistent_undo +vertsplit
+cmdline_info    +keymap          +postscript      +virtualedit
+comments        +langmap         +printer         +visual
+conceal         +libcall         +profile         +visualextra
+cryptv          +linebreak       +python          +viminfo
+cscope          +lispindent      -python3         +vreplace
+cursorbind      +listcmds        +quickfix        +wildignore
+cursorshape     +localmap        +reltime         +wildmenu
+dialog_con      -lua             +rightleft       +windows
+diff            +menu            -ruby            +writebackup
+digraphs        +mksession       +scrollbind      -X11
-dnd             +modify_fname    +signs           -xfontset
-ebcdic          +mouse           +smartindent     -xim
+emacs_tags      -mouseshape      -sniff           -xsmp
+eval            +mouse_dec       +startuptime     -xterm_clipboard
+ex_extra        +mouse_gpm       +statusline      -xterm_save
+extra_search    -mouse_jsbterm   -sun_workshop    -xpm
   system vimrc file: "$VIM/vimrc"
     user vimrc file: "$HOME/.vimrc"
 2nd user vimrc file: "~/.vim/vimrc"
      user exrc file: "$HOME/.exrc"
  fall-back for $VIM: "/usr/share/vim"
Compilation: gcc -c -I. -Iproto -DHAVE_CONFIG_H     -g -O2 -fPIE -fstack-protector-strong -Wformat -Werror=format-security -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1      
Linking: gcc   -Wl,-Bsymbolic-functions -fPIE -pie -Wl,-z,relro -Wl,-z,now -Wl,--as-needed -o vim        -lm -ltinfo -lnsl  -lselinux  -lacl -lattr -lgpm -ldl    -L/usr/lib/python2.7/config-i386-linux-gnu -lpython2.7 -lpthread -ldl -lutil -lm -Xlinker -export-dynamic -Wl,-O1 -Wl,-Bsymbolic-functions 
@hoelzro
Copy link
Member

hoelzro commented Sep 8, 2016

@0racle Thanks for the report! I can see what you're saying; can you provide an example (both screenshot and code) of a chained method call that doesn't use » and thus highlights correctly?

@0racle
Copy link
Contributor Author

0racle commented Sep 9, 2016

I've updated the screenshot in the issue.

@hoelzro
Copy link
Member

hoelzro commented Sep 9, 2016

Here's what I'm seeing when I run vim -u NONE -c 'source syntax/perl6.vim' -c 'syntax on' -c 'setf perl6' example.pl:

vim-perl-chained-methods

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants