Syntax Completion works only for one language

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
11 messages Options
Reply | Threaded
Open this post in threaded view
|

Syntax Completion works only for one language

Ameesh Oza
I am trying to use syntax completion for two separate languages on Linux, say A & B. I have these directories

.vim/ftdetect/A.vim
.vim/syntax/A.vim
.vim/ftdetect/B.vm
.vim/syntax/B.vim

Syntax highlighting works for both languages without problems. But syntax completion (^X^O) works for only one, even though the ftdetect vim files for both look very similar.

I have no other files or directories in my .vim directory. I also have a .vimrc
file that looks like

:set nocompatible
:filetype on
:filetype plugin on
:cmap Et tabedit
":set viewoptions-=options
":autocmd BufWinLeave *.* mkview
":autocmd BufWinEnter *.* silent loadview
:set tags+=tags,~/.vim/tags
:set foldmethod=indent
:set ts=2 ai ic

Any suggestions are welcome.

--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: Syntax Completion works only for one language

David Fishburn-2


On Tue, Jul 3, 2018 at 8:59 PM 'Ameesh Oza' via vim_use <[hidden email]> wrote:
I am trying to use syntax completion for two separate languages on Linux, say A & B. I have these directories

...
 
Syntax highlighting works for both languages without problems. But syntax completion (^X^O) works for only one, even though the ftdetect vim files for both look

...
When you indicate it works for only one what does that exactly mean?
Does the completion window open for only 1 language?
Does the completion window open for both, but have the same values for both languages? 

Can you be a bit more descriptive.

Also, what commands did you execute to setup the syntax completion for each buffer?
Are you using autocommands to do it?

David

--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: Syntax Completion works only for one language

Ameesh Oza
On Tuesday, July 3, 2018 at 7:21:27 PM UTC-7, David Fishburn wrote:

> On Tue, Jul 3, 2018 at 8:59 PM 'Ameesh Oza' via vim_use <[hidden email]> wrote:
> I am trying to use syntax completion for two separate languages on Linux, say A & B. I have these directories
>
>
> ...
>  Syntax highlighting works for both languages without problems. But syntax completion (^X^O) works for only one, even though the ftdetect vim files for both look
>
>
>
> ...
> When you indicate it works for only one what does that exactly mean?
> Does the completion window open for only 1 language?
Yes only for 1 language
> Does the completion window open for both, but have the same values for both languages? 
>
>
> Can you be a bit more descriptive.
>
>
> Also, what commands did you execute to setup the syntax completion for each buffer?
> Are you using autocommands to do it?

Yes. In both ftdetect vim files I have

if has("autocmd") && exists("+omnifunc")
  autocmd Filetype *
          \ if &omnifunc == "" |
          \ setlocal omnifunc=syntaxcomplete#Complete |
          \ endif
endif

>
>
> David

--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: Syntax Completion works only for one language

David Fishburn-2


On Tue, Jul 3, 2018 at 11:55 PM 'Ameesh Oza' via vim_use <[hidden email]> wrote:
On Tuesday, July 3, 2018 at 7:21:27 PM UTC-7, David Fishburn wrote:
> On Tue, Jul 3, 2018 at 8:59 PM 'Ameesh Oza' via vim_use <[hidden email]> wrote:
> I am trying to use syntax completion for two separate languages on Linux, say A & B. I have these directories
>
>
> ...
>  Syntax highlighting works for both languages without problems. But syntax completion (^X^O) works for only one, even though the ftdetect vim files for both look
>
>
>
> ...
> When you indicate it works for only one what does that exactly mean?
> Does the completion window open for only 1 language?
Yes only for 1 language
> Does the completion window open for both, but have the same values for both languages? 
>
>
> Can you be a bit more descriptive.
>
>
> Also, what commands did you execute to setup the syntax completion for each buffer?
> Are you using autocommands to do it?

Yes. In both ftdetect vim files I have

if has("autocmd") && exists("+omnifunc")
  autocmd Filetype *
          \     if &omnifunc == "" |
          \             setlocal omnifunc=syntaxcomplete#Complete |
          \     endif
endif


You didn't answer all the questions.
Also, can you provide the :version output. 

--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: Syntax Completion works only for one language

Ameesh Oza
On Wednesday, July 4, 2018 at 5:08:51 AM UTC-7, David Fishburn wrote:

> On Tue, Jul 3, 2018 at 11:55 PM 'Ameesh Oza' via vim_use <[hidden email]> wrote:
> On Tuesday, July 3, 2018 at 7:21:27 PM UTC-7, David Fishburn wrote:
>
> > On Tue, Jul 3, 2018 at 8:59 PM 'Ameesh Oza' via vim_use <[hidden email]> wrote:
>
> > I am trying to use syntax completion for two separate languages on Linux, say A & B. I have these directories
>
> >
>
> >
>
> > ...
>
> >  Syntax highlighting works for both languages without problems. But syntax completion (^X^O) works for only one, even though the ftdetect vim files for both look
>
> >
>
> >
>
> >
>
> > ...
>
> > When you indicate it works for only one what does that exactly mean?
>
> > Does the completion window open for only 1 language?
>
> Yes only for 1 language
>
> > Does the completion window open for both, but have the same values for both languages? 
>
> >
>
> >
>
> > Can you be a bit more descriptive.
>
> >
>
> >
>
> > Also, what commands did you execute to setup the syntax completion for each buffer?
>
> > Are you using autocommands to do it?
>
>
>
> Yes. In both ftdetect vim files I have
>
>
>
> if has("autocmd") && exists("+omnifunc")
>
>   autocmd Filetype *
>
>           \     if &omnifunc == "" |
>
>           \             setlocal omnifunc=syntaxcomplete#Complete |
>
>           \     endif
>
> endif
>
>
>
>
>
> You didn't answer all the questions.
> Also, can you provide the :version output. 
: version output

:version
VIM - Vi IMproved 7.4 (2013 Aug 10, compiled Jul 24 2015 02:22:44)
Included patches: 1-207, 209-629
Modified by <[hidden email]>
Compiled by <[hidden email]>
Huge version with GTK2 GUI.  Features included (+) or not (-):
+acl             +dialog_con_gui  +insert_expand   +mouse_sgr       -ruby            +vertsplit
+arabic          +diff            +jumplist        -mouse_sysmouse  +scrollbind      +virtualedit
+autocmd         +digraphs        +keymap          +mouse_urxvt     +signs           +visual
+balloon_eval    +dnd             +langmap         +mouse_xterm     +smartindent     +visualextra
+browse          -ebcdic          +libcall         +multi_byte      -sniff           +viminfo
++builtin_terms  +emacs_tags      +linebreak       +multi_lang      +startuptime     +vreplace
+byte_offset     +eval            +lispindent      -mzscheme        +statusline      +wildignore
+cindent         +ex_extra        +listcmds        +netbeans_intg   -sun_workshop    +wildmenu
+clientserver    +extra_search    +localmap        +path_extra      +syntax          +windows
+clipboard       +farsi           -lua             +perl            +tag_binary      +writebackup
+cmdline_compl   +file_in_path    +menu            +persistent_undo +tag_old_static  +X11
+cmdline_hist    +find_in_path    +mksession       +postscript      -tag_any_white   -xfontset
+cmdline_info    +float           +modify_fname    +printer         -tcl             +xim
+comments        +folding         +mouse           +profile         +terminfo        +xsmp_interact
+conceal         -footer          +mouseshape      +python/dyn      +termresponse    +xterm_clipboard
+cryptv          +fork()          +mouse_dec       -python3         +textobjects     -xterm_save
+cscope          +gettext         +mouse_gpm       +quickfix        +title           +xpm
+cursorbind      -hangul_input    -mouse_jsbterm   +reltime         +toolbar
+cursorshape     +iconv           +mouse_netterm   +rightleft       +user_commands
   system vimrc file: "/etc/vimrc"
     user vimrc file: "$HOME/.vimrc"
 2nd user vimrc file: "~/.vim/vimrc"
      user exrc file: "$HOME/.exrc"
  system gvimrc file: "/etc/gvimrc"
    user gvimrc file: "$HOME/.gvimrc"
2nd user gvimrc file: "~/.vim/gvimrc"
    system menu file: "$VIMRUNTIME/menu.vim"
  fall-back for $VIM: "/etc"
 f-b for $VIMRUNTIME: "/usr/share/vim/vim74"
Compilation: gcc -c -I. -Iproto -DHAVE_CONFIG_H -DFEAT_GUI_GTK  -pthread -I/usr/include/gtk-2.0 -I/usr/lib64/gtk-2.
0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/pango-1.0 -I/usr
/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/lib
png12     -O2 -g -pipe -Wall -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -D_GNU_SO
URCE -D_FILE_OFFSET_BITS=64 -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1
Linking: gcc   -Wl,-E -Wl,-rpath,/usr/lib64/perl5/CORE   -L/usr/local/lib -Wl,--as-needed -o vim   -pthread -lgtk-x
11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgio-2.0 -lpangoft2-1.0 -lpangocairo-1.0 -lgdk_pixbuf-2.0 -lcairo -lpango-1.0 -lfre
etype -lfontconfig -lgobject-2.0 -lgmodule-2.0 -lgthread-2.0 -lrt -lglib-2.0   -lSM -lICE -lXpm -lXt -lX11 -lSM -lI
CE  -lm -lnsl  -lselinux  -ltinfo -lacl -lattr -lgpm   -Wl,-E -Wl,-rpath,/usr/lib64/perl5/CORE  -fstack-protector
-L/usr/lib64/perl5/CORE -lperl -lresolv -lnsl -ldl -lm -lcrypt -lutil -lpthread -lc


My completion window opens for only one language. For other language. I get message  -- Omni completion (^O^N^P) Pattern not found. But syntax highlighting works for second language.

--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: Syntax Completion works only for one language

David Fishburn-2


On Thu, Jul 5, 2018 at 12:38 PM 'Ameesh Oza' via vim_use <[hidden email]> wrote:
On Wednesday, July 4, 2018 at 5:08:51 AM UTC-7, David Fishburn wrote:
...
: version output

:version
VIM - Vi IMproved 7.4 (2013 Aug 10, compiled Jul 24 2015 02:22:44)
Included patches: 1-207, 209-629
Modified by <[hidden email]>
Compiled by <[hidden email]>
Huge version with GTK2 GUI.  Features included (+) or not (-):


My completion window opens for only one language. For other language. I get message  -- Omni completion (^O^N^P) Pattern not found. But syntax highlighting works for second language.


Hmm, pattern not found.  That sounds like it has not picked up the syntax list.

Can you run through the following commands exactly as I have done.
I tried to pick languages that Vim knows how to syntax highlight but do not already have their own complete plugins.

I just tried the following with my Windows 7.4
:ver
VIM - Vi IMproved 7.4 (2013 Aug 10, compiled Sep  7 2016 08:32:39)
MS-Windows 32-bit GUI version with OLE support
Included patches: 1-2342

:e dave.tcl

:setl
--- Local option values ---
  autoindent          comments=:#         cursorcolumn        errorformat=        grepprg=            lispwords=          nrformats=bin,hex   shiftwidth=4        tags=
--autoread            commentstring=#%s   cursorline          expandtab           include=            makeprg=            path=               syntax=tcl
  backupcopy=         cryptmethod=        define=             filetype=tcl        keywordprg=         modified            scroll=24           tagcase=
  formatoptions=tcroql
  formatlistpat=^\s*\(\d\+[\]:.)}\t ]\|-\)\s*
  indentexpr=GetTclIndent()
  indentkeys=0{,0},!^F,o,O,0]
  omnifunc=syntaxcomplete#Complete
  undolevels=-123456
 
i<CTRL-X><CTRL-O>

I get a list of words:
TODO
abs
accelerator
acos

:echo OmniSyntaxList()
['TODO', 'abs', 'accelerator', 'acos', ...]

:e dave.moo

:setl
--- Local option values ---
  autoindent          cryptmethod=        define=             filetype=moo        keywordprg=         modified            scroll=24           tagcase=
--autoread            cursorcolumn        errorformat=        grepprg=            lispwords=          nrformats=bin,hex   shiftwidth=4        tags=
  backupcopy=         cursorline          expandtab           include=            makeprg=            path=               syntax=moo
  comments=b:#,:%,n:>
  formatoptions=cqtro
  formatlistpat=^\s*\(\d\+[\]:.)}\t ]\|-\)\s*
  omnifunc=syntaxcomplete#Complete
  undolevels=-123456


i<CTRL-X><CTRL-O>

I get a list of words:
@
ERR
FLOAT
INT

:echo OmniSyntaxList()
['@', '@', '@', '@', '@', 'ERR', 'FLOAT', 'INT', ...]



:echo g:loaded_syntax_completion
130  (aka 13.0)

Please check your version of the syntax complete plugin.

You can download an updated copy of it from here:


After loading the buffer:

:syntax list
--- Syntax items ---
mooUncommentedError xxx match +\*/+  display
                   links to Error
mooCStyleCommentError xxx match +/\ze\*+  display contained
                   links to Error
mooComment     xxx match #[\t !%&*+,\-/<=>?@^|]\@<!\s*"\([^\"]\|\\.\)*"\s*;#  contains=mooStringError,mooCommentSpecialChar
                   links to Comment

What happens after you:
:echo OmniSyntaxList()

David


--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: Syntax Completion works only for one language

Ameesh Oza
On Friday, July 6, 2018 at 6:23:15 AM UTC-7, David Fishburn wrote:

> On Thu, Jul 5, 2018 at 12:38 PM 'Ameesh Oza' via vim_use <[hidden email]> wrote:
> On Wednesday, July 4, 2018 at 5:08:51 AM UTC-7, David Fishburn wrote:
> ...
>
> : version output
>
>
>
> :version
>
> VIM - Vi IMproved 7.4 (2013 Aug 10, compiled Jul 24 2015 02:22:44)
>
> Included patches: 1-207, 209-629
>
> Modified by <[hidden email]>
>
> Compiled by <[hidden email]>
>
> Huge version with GTK2 GUI.  Features included (+) or not (-):
>
>
>
>
> My completion window opens for only one language. For other language. I get message  -- Omni completion (^O^N^P) Pattern not found. But syntax highlighting works for second language.
>
>
>
>
>
> Hmm, pattern not found.  That sounds like it has not picked up the syntax list.
>
>
> Can you run through the following commands exactly as I have done.
> I tried to pick languages that Vim knows how to syntax highlight but do not already have their own complete plugins.
>
>
> I just tried the following with my Windows 7.4
>
>
> :ver
> VIM - Vi IMproved 7.4 (2013 Aug 10, compiled Sep  7 2016 08:32:39)
> MS-Windows 32-bit GUI version with OLE support
> Included patches: 1-2342
>
>
> :e dave.tcl
>
>
> :setl
> --- Local option values ---
>   autoindent          comments=:#         cursorcolumn        errorformat=        grepprg=            lispwords=          nrformats=bin,hex   shiftwidth=4        tags=
> --autoread            commentstring=#%s   cursorline          expandtab           include=            makeprg=            path=               syntax=tcl
>   backupcopy=         cryptmethod=        define=             filetype=tcl        keywordprg=         modified            scroll=24           tagcase=
>   formatoptions=tcroql
>   formatlistpat=^\s*\(\d\+[\]:.)}\t ]\|-\)\s*
>   indentexpr=GetTclIndent()
>   indentkeys=0{,0},!^F,o,O,0]
>   omnifunc=syntaxcomplete#Complete
>   undolevels=-123456
>  
> i<CTRL-X><CTRL-O>
>
>
> I get a list of words:
> TODO
> abs
> accelerator
> acos
>
>
> :echo OmniSyntaxList()
> ['TODO', 'abs', 'accelerator', 'acos', ...]
>
>
>
> :e dave.moo
>
>
>
> :setl
> --- Local option values ---
>   autoindent          cryptmethod=        define=             filetype=moo        keywordprg=         modified            scroll=24           tagcase=
> --autoread            cursorcolumn        errorformat=        grepprg=            lispwords=          nrformats=bin,hex   shiftwidth=4        tags=
>   backupcopy=         cursorline          expandtab           include=            makeprg=            path=               syntax=moo
>   comments=b:#,:%,n:>
>   formatoptions=cqtro
>   formatlistpat=^\s*\(\d\+[\]:.)}\t ]\|-\)\s*
>   omnifunc=syntaxcomplete#Complete
>   undolevels=-123456
>
>
>
>
>
>
>
> i<CTRL-X><CTRL-O>
>
>
> I get a list of words:
> @
> ERR
>
> FLOAT
> INT
>
>
>
>
>
> :echo OmniSyntaxList()
> ['@', '@', '@', '@', '@', 'ERR', 'FLOAT', 'INT', ...]
>
>
>
>
>
>
>
> :echo g:loaded_syntax_completion
> 130  (aka 13.0)
>
>
> Please check your version of the syntax complete plugin.
>
>
> You can download an updated copy of it from here:
> https://www.vim.org/scripts/script.php?script_id=3172
>
>
>
>
>
> After loading the buffer:
>
>
>
> :syntax list
> --- Syntax items ---
> mooUncommentedError xxx match +\*/+  display
>                    links to Error
> mooCStyleCommentError xxx match +/\ze\*+  display contained
>                    links to Error
> mooComment     xxx match #[\t !%&*+,\-/<=>?@^|]\@<!\s*"\([^\"]\|\\.\)*"\s*;#  contains=mooStringError,mooCommentSpecialChar
>                    links to Comment
>
>
> What happens after you:
>
>
>
> :echo OmniSyntaxList()
>
>
> David
:e test.upf

:setl
--- Local option values ---
  autoindent          define=             grepprg=            makeprg=            syntax=upf
--autoread            errorformat=        include=            path=               tabstop=4
  backupcopy=         filetype=upf        keywordprg=         scroll=11           tags=
  cryptmethod=        foldmethod=indent   lispwords=          shiftwidth=4
  iskeyword=@,48-57,_,192-255,-
  omnifunc=syntaxcomplete#Complete
  undolevels=-123456

i<C-X><C-O> gives me a list of words

:echo OmniSyntaxList()
['-', '-ack_delay', '-ack_port', '-all_equivalent', '-applies_to', '-assert_r_mutex', '-assert_rs_mutex', '-assert_
s_mutex', '-attribute', '-cells', '-clamp_value', '-control_port', '-direction', '-domain', '-elements', '-error_st
ate', '-function', '-handle', '-hdl_type', '-illegal', '-include_scope', '-input_supply_port', '-iso_nor', '-isolat
ion_ground_net', '-isolation_power_net', '-isolation_prefix', '-isolation_sense', '-isolation_signal', '-isolation_
suffix', '-isolation_supply_set', '-legal', '-level_shift_prefix', '-level_shift_suffix', '-lib_cell_type', '-lib_c
ells', '-lib_model_name', '-location', '-logic_expr', '-module', '-module', '-no_isolation', '-no_shift', '-off_sta
te', '-on_partial_state', '-on_state', '-output_supply_port', '-pg_type', '-pg_type', '-pins', '-pins', '-port', '-
ports', '-power_domains', '-primary_ground_net', '-primary_power_net', '-pst', '-rail_connection', '-rail_connectio
n', '-related_ground_pin', '-related_power_pin', '-resolve', '-restore_signal', '-retention_ground_net', '-retentio
n_power_net', '-retention_supply_set', '-reuse', '-rule', '-save_signal', '-scope', '-source', '-state', '-supplies
', '-supply', '-supply_expr', '-table', '-threshold', '-update', '-vct', '-version', '@', 'SV', 'TODO', 'add_domain
_elements', 'add_port_state', 'add_power_state', 'add_pst_state', 'associate_supply_set', 'automatic', 'bind_checke
r', 'both', 'connect_supply_net', 'create_hdl2upf_vct', 'create_power_domain', 'create_power_switch', 'create_pst',
 'create_supply_net', 'create_supply_port', 'create_supply_set', 'create_upf2hdl', 'default_isolation', 'default_re
tention', 'fanout', 'get_supply_net', 'ground', 'high', 'high_to_low', 'in', 'include', 'inputs', 'latch', 'load_up
f', 'low', 'low_to_high', 'map_isolation_cell', 'map_level_shifter_cell', 'map_power_switch', 'map_retention_cell',
 'match', 'max', 'merge_power_domains', 'min', 'name', 'name_format', 'negedge', 'new_domain_name', 'nom', 'off', '
one_hot', 'out', 'outputs', 'parallel', 'parent', 'posedge', 'power', 'primary', 'save_upf', 'self', 'set_design_at
tributes', 'set_design_top', 'set_domain_supply_net', 'set_isolation', 'set_isolation_control', 'set_pin_related_su
pply', 'set_power_switch', 'set_retention', 'set_retention_control', 'set_scope', 'sibling', 'typename', 'unresolve
d', 'upf_version', 'vhdl', 'vlog', 'when-not']

:e test.sv

:setl
:setl
--- Local option values ---
  autoindent          define=             include=            path=               tags=
--autoread            errorformat=        keywordprg=         scroll=11
  backupcopy=         foldmethod=indent   lispwords=          shiftwidth=4
  cryptmethod=        grepprg=            makeprg=            tabstop=4
  filetype=verilog_systemverilog
  iskeyword=@,48-57,63,_,192-255
  omnifunc=syntaxcomplete#Complete
  syntax=verilog_systemverilog
  undolevels=-123456

i<C-X><C-O>
-- Omni completion (^O^N^P) Pattern not found

:echo OmniSyntaxList()
[]

:echo g:loaded_syntax_completion
130

--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: Syntax Completion works only for one language

David Fishburn-2


On Mon, Jul 9, 2018 at 6:21 PM 'Ameesh Oza' via vim_use <[hidden email]> wrote:
On Friday, July 6, 2018 at 6:23:15 AM UTC-7, David Fishburn wrote:
> On Thu, Jul 5, 2018 at 12:38 PM 'Ameesh Oza' via vim_use <[hidden email]> wrote:
> On Wednesday, July 4, 2018 at 5:08:51 AM UTC-7, David Fishburn wrote:
> ...
>
...
 
>
> Hmm, pattern not found.  That sounds like it has not picked up the syntax list.
>
 
...
:e test.upf

...
 
i<C-X><C-O> gives me a list of words

:echo OmniSyntaxList()
['-', '-ack_delay', '-ack_port', '-all_equivalent', '-applies_to', '-assert_r_mutex', '-assert_rs_mutex', '-assert_
...
:e test.sv

i<C-X><C-O>
-- Omni completion (^O^N^P) Pattern not found

:echo OmniSyntaxList()
[]


Well, that would explain the pattern not found.
When you are in this state and you run:
:syntax list

What output do you get?

The syntaxComplete plugin pulls what to highlight from the output of that command.

When I try this on my 7.4 system I get:

syntax list
--- Syntax items ---
verilogStatement xxx always highz0 highz1 posedge noshowcancelled notif0 notif1 force endgenerate or realtime instance pmos cmos cell automatic genvar rnmos nand wait weak0 weak1 initial trireg pullup
                   parameter table large input event output ifnone unsigned and xnor endtable real config pulldown pulsestyle_onevent incdir rpmos medium rcmos generate pull0 liblist showcancelled rtran
                   endprimitive scalared endmodule rtranif0 rtranif1 specparam xor endspecify wand inout wor endtask task endfunction bufif0 bufif1 small library wire time primitive tranif0 tranif1 triand
                   integer localparam endconfig assign tran disable reg module nmos macromodule negedge trior tri0 tri1 release include nor not specify defparam pull1 vectored pulsestyle_ondetect buf
                   function deassign tri edge strong0 strong1 design signed use supply0 supply1
                   links to Statement
verilogLabel   xxx end join begin fork
...

:echo OmniSyntaxList()
['accept_on', 'alias', 'always_comb', 'always_ff', 'always_latch', 'assert', 'assume', 'before', 'bind', 'bins', 'binsof', 'bit', 'break', 'byte', 'chandle', 'checker', 'class', 'clocking', 'const', 'constra
int', 'context', 'continue', 'cover', 'covergroup', 'coverpoint', 'cross', 'dist', 'do', 'endchecker', 'endclass', 'endclocking', 'endgroup', 'endinterface', 'endpackage', 'endprogram', 'endproperty', 'endse
quence', 'enum', 'eventually', ....
 
David

--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: Syntax Completion works only for one language

Ameesh Oza
On Tuesday, July 10, 2018 at 7:01:32 AM UTC-7, David Fishburn wrote:

> On Mon, Jul 9, 2018 at 6:21 PM 'Ameesh Oza' via vim_use <[hidden email]> wrote:
> On Friday, July 6, 2018 at 6:23:15 AM UTC-7, David Fishburn wrote:
>
> > On Thu, Jul 5, 2018 at 12:38 PM 'Ameesh Oza' via vim_use <[hidden email]> wrote:
>
> > On Wednesday, July 4, 2018 at 5:08:51 AM UTC-7, David Fishburn wrote:
>
> > ...
>
> >
> ...
>  >
>
> > Hmm, pattern not found.  That sounds like it has not picked up the syntax list.
>
> >
>
>  ...
>
> :e test.upf
>
>
> ...
>  i<C-X><C-O> gives me a list of words
>
>
>
> :echo OmniSyntaxList()
>
> ['-', '-ack_delay', '-ack_port', '-all_equivalent', '-applies_to', '-assert_r_mutex', '-assert_rs_mutex', '-assert_
> ...
>
> :e test.sv
>
>
> i<C-X><C-O>
>
> -- Omni completion (^O^N^P) Pattern not found
>
>
>
> :echo OmniSyntaxList()
>
> []
>
>
>
>
>
> Well, that would explain the pattern not found.
> When you are in this state and you run:
> :syntax list
>
>
> What output do you get?
>
>
> The syntaxComplete plugin pulls what to highlight from the output of that command.
>
>
> When I try this on my 7.4 system I get:
> :e dave.sv
>
>
>
> syntax list
> --- Syntax items ---
> verilogStatement xxx always highz0 highz1 posedge noshowcancelled notif0 notif1 force endgenerate or realtime instance pmos cmos cell automatic genvar rnmos nand wait weak0 weak1 initial trireg pullup
>                    parameter table large input event output ifnone unsigned and xnor endtable real config pulldown pulsestyle_onevent incdir rpmos medium rcmos generate pull0 liblist showcancelled rtran
>                    endprimitive scalared endmodule rtranif0 rtranif1 specparam xor endspecify wand inout wor endtask task endfunction bufif0 bufif1 small library wire time primitive tranif0 tranif1 triand
>                    integer localparam endconfig assign tran disable reg module nmos macromodule negedge trior tri0 tri1 release include nor not specify defparam pull1 vectored pulsestyle_ondetect buf
>                    function deassign tri edge strong0 strong1 design signed use supply0 supply1
>                    links to Statement
> verilogLabel   xxx end join begin fork
> ...
>
>
>
>
> :echo OmniSyntaxList()
>
>
>
>
> ['accept_on', 'alias', 'always_comb', 'always_ff', 'always_latch', 'assert', 'assume', 'before', 'bind', 'bins', 'binsof', 'bit', 'break', 'byte', 'chandle', 'checker', 'class', 'clocking', 'const', 'constra
> int', 'context', 'continue', 'cover', 'covergroup', 'coverpoint', 'cross', 'dist', 'do', 'endchecker', 'endclass', 'endclocking', 'endgroup', 'endinterface', 'endpackage', 'endprogram', 'endproperty', 'endse
> quence', 'enum', 'eventually', ....
>  
> David
:syntax list
verilogStatement xxx highz0 highz1 always_comb force automatic pullup genvar parameter table input this alias
                   config import tagged generate rtran endprimitive rtranif0 rtranif1 specparam sequence
                   endspecify wor super library endpackage export first_match throughout semaphore localparam
                   endconfig set_randstate randcase module module before dist negedge include pull0 pull1
                   coverpoint endprogram int use within endgroup wait notif0 notif1 endgenerate chandle
                   endmodule endmodule endsequence std null var constraint event extends ifnone and xnor
                   endtable real const pulsestyle_onevent class showcancelled function solve wand endtask wire
                   struct tri extern sample strong0 strong1 ref reg cross nmos with defparam wildcard vectored
                   deassign disable package always_latch pure randsequence scalared pmos cmos cell triggered
                   nand longint unsigned inout get_randstate always_ff void program type pulldown randomize
                   endclass covergroup xor endproperty small context priority time time assign ignore_bins
                   srandom rand bit macromodule assume trior nor not modport virtual shortreal always posedge
                   noshowcancelled or triand wait_order realtime instance final string rnmos tran inside weak0
                   weak1 initial timeunit clocking large unique output specify property new local matches uwire
                   incdir endinterface protected rpmos rcmos intersect liblist binsof expect illegal_bins trireg
                   task packed endfunction bufif0 bufif1 timeprecision static interface cover tranif0 tranif1
                   medium integer union shortint primitive endclocking tri0 tri1 release pulsestyle_ondetect buf
-- More --

--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: Syntax Completion works only for one language

David Fishburn-2


On Tue, Jul 10, 2018 at 2:56 PM 'Ameesh Oza' via vim_use <[hidden email]> wrote:
...
 
:syntax list
verilogStatement xxx highz0 highz1 always_comb force automatic pullup genvar parameter table input this alias
                   config import tagged generate rtran endprimitive rtranif0 rtranif1 specparam sequence
                   endspecify wor super library endpackage export first_match throughout semaphore localparam
                   endconfig set_randstate randcase module module before dist negedge include pull0 pull1
                   coverpoint endprogram int use within endgroup wait notif0 notif1 endgenerate chandle
                   endmodule endmodule endsequence std null var constraint event extends ifnone and xnor
                   endtable real const pulsestyle_onevent class showcancelled function solve wand endtask wire
                   struct tri extern sample strong0 strong1 ref reg cross nmos with defparam wildcard vectored
                   deassign disable package always_latch pure randsequence scalared pmos cmos cell triggered
                   nand longint unsigned inout get_randstate always_ff void program type pulldown randomize
                   endclass covergroup xor endproperty small context priority time time assign ignore_bins
                   srandom rand bit macromodule assume trior nor not modport virtual shortreal always posedge
                   noshowcancelled or triand wait_order realtime instance final string rnmos tran inside weak0
                   weak1 initial timeunit clocking large unique output specify property new local matches uwire
                   incdir endinterface protected rpmos rcmos intersect liblist binsof expect illegal_bins trireg
                   task packed endfunction bufif0 bufif1 timeprecision static interface cover tranif0 tranif1
                   medium integer union shortint primitive endclocking tri0 tri1 release pulsestyle_ondetect buf
-- More --

And ...

:echo OmniSyntaxList()   

--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: Syntax Completion works only for one language

Ameesh Oza
On Thursday, July 12, 2018 at 6:07:05 AM UTC-7, David Fishburn wrote:

> On Tue, Jul 10, 2018 at 2:56 PM 'Ameesh Oza' via vim_use <[hidden email]> wrote:
> ...
>  :syntax list
>
> verilogStatement xxx highz0 highz1 always_comb force automatic pullup genvar parameter table input this alias
>
>                    config import tagged generate rtran endprimitive rtranif0 rtranif1 specparam sequence
>
>                    endspecify wor super library endpackage export first_match throughout semaphore localparam
>
>                    endconfig set_randstate randcase module module before dist negedge include pull0 pull1
>
>                    coverpoint endprogram int use within endgroup wait notif0 notif1 endgenerate chandle
>
>                    endmodule endmodule endsequence std null var constraint event extends ifnone and xnor
>
>                    endtable real const pulsestyle_onevent class showcancelled function solve wand endtask wire
>
>                    struct tri extern sample strong0 strong1 ref reg cross nmos with defparam wildcard vectored
>
>                    deassign disable package always_latch pure randsequence scalared pmos cmos cell triggered
>
>                    nand longint unsigned inout get_randstate always_ff void program type pulldown randomize
>
>                    endclass covergroup xor endproperty small context priority time time assign ignore_bins
>
>                    srandom rand bit macromodule assume trior nor not modport virtual shortreal always posedge
>
>                    noshowcancelled or triand wait_order realtime instance final string rnmos tran inside weak0
>
>                    weak1 initial timeunit clocking large unique output specify property new local matches uwire
>
>                    incdir endinterface protected rpmos rcmos intersect liblist binsof expect illegal_bins trireg
>
>                    task packed endfunction bufif0 bufif1 timeprecision static interface cover tranif0 tranif1
>
>                    medium integer union shortint primitive endclocking tri0 tri1 release pulsestyle_ondetect buf
>
> -- More --
>
>
>
> And ...
>
>
>
>
> :echo OmniSyntaxList() 
>
>  
:echo OmniSyntaxList()
 []


--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
For more options, visit https://groups.google.com/d/optout.