[vim/vim] runtime(rasi): add filetype and syntax plugin (PR #14821)

11 views
Skip to first unread message

Pierrick Guillaume

unread,
May 21, 2024, 10:26:04โ€ฏAMMay 21
to vim/vim, Subscribed

ported from: https://github.com/Fymyte/rasi.vim

Signed-of-by: Pierrick Guillaume pier...@gmail.com


You can view, comment on, or merge this pull request online at:

ย ย https://github.com/vim/vim/pull/14821

Commit Summary

  • a8ad02d runtime(rasi): add filetype and syntax plugin

File Changes

(6ย files)

Patch Links:

โ€”
Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/pull/14821@github.com>

Christian Brabandt

unread,
May 22, 2024, 8:20:18โ€ฏAMMay 22
to vim/vim, Subscribed

@chrisbra commented on this pull request.


In runtime/ftplugin/rasi.vim:

> +" Vim filetype plugin file
+" Language:		RASI
+" Maintainer:		Pierrick Guillaume <pier...@gmail.com>
+" Last Change:		2024 May 21
+
+if exists("b:did_ftplugin")
+  finish
+endif
+let b:did_ftplugin = 1
+
+let s:cpo_save = &cpo
+set cpo&vim
+
+let b:undo_ftplugin = "setl com< cms< isk<"
+
+setlocal comments=s1:/*,mb:*,ex:*/ commentstring&

no need to reset commentstring option, since you are setting it in the next line anyhow.


In runtime/ftplugin/rasi.vim:

> +
+if exists("b:did_ftplugin")
+  finish
+endif
+let b:did_ftplugin = 1
+
+let s:cpo_save = &cpo
+set cpo&vim
+
+let b:undo_ftplugin = "setl com< cms< isk<"
+
+setlocal comments=s1:/*,mb:*,ex:*/ commentstring&
+setlocal commentstring=//\ %s
+setlocal iskeyword+=-
+
+let &l:include = '^\s*@import\s\+\%(url(\)\='

missing in b:undo_ftplugin

โ€”
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/pull/14821/review/2071021436@github.com>

Pierrick Guillaume

unread,
May 31, 2024, 5:25:44โ€ฏAMMay 31
to vim/vim, Push

@Fymyte pushed 2 commits.

  • e3abae0 runtime(java): Improve the matching of lambda expressions (#14880)
  • 7fbd56c runtime(rasi): add filetype and syntax plugin

โ€”
View it on GitHub.
You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/pull/14821/push/18670459083@github.com>

Pierrick Guillaume

unread,
May 31, 2024, 5:34:57โ€ฏAMMay 31
to vim/vim, Subscribed

Hi, sorry for the forced push, I messed up my rebase.

I fixed your 2 requests ๐Ÿ‘ thx for the review

โ€”
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/pull/14821/c2141611542@github.com>

Christian Brabandt

unread,
May 31, 2024, 6:00:45โ€ฏAMMay 31
to vim/vim, Subscribed

thanks!

โ€”
Reply to this email directly, view it on GitHub.

You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/pull/14821/c2141676184@github.com>

Christian Brabandt

unread,
May 31, 2024, 6:04:37โ€ฏAMMay 31
to vim/vim, Subscribed

Closed #14821 via 280e5b1.

โ€”
Reply to this email directly, view it on GitHub.

You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/pull/14821/issue_event/12998093983@github.com>

Reply all
Reply to author
Forward
0 new messages