public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] proj/gentoo-syntax:master commit in: ftdetect/
@ 2016-05-30  3:09 Tim Harder
  0 siblings, 0 replies; 8+ messages in thread
From: Tim Harder @ 2016-05-30  3:09 UTC (permalink / raw
  To: gentoo-commits

commit:     2355e6c5f50d14534d8885f8619f1d4241aa1596
Author:     Tim Harder <radhermit <AT> gentoo <DOT> org>
AuthorDate: Mon May 30 03:04:55 2016 +0000
Commit:     Tim Harder <radhermit <AT> gentoo <DOT> org>
CommitDate: Mon May 30 03:06:55 2016 +0000
URL:        https://gitweb.gentoo.org/proj/gentoo-syntax.git/commit/?id=2355e6c5

ftdetect: detect both runscript and openrc-run shebangs as init scripts

Fixes #6.

 ftdetect/gentoo.vim | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/ftdetect/gentoo.vim b/ftdetect/gentoo.vim
index ba425fe..305d567 100644
--- a/ftdetect/gentoo.vim
+++ b/ftdetect/gentoo.vim
@@ -34,7 +34,7 @@ au BufNewFile,BufRead /etc/init.d/*
     \     set filetype=gentoo-init-d |
 
 au BufNewFile,BufRead /*/files/*
-    \ if (getline(1) ==? "#!/sbin/runscript") |
+    \ if (getline(1) =~? "#!/sbin/\\(runscript\\|openrc-run\\)") |
     \     set filetype=gentoo-init-d |
     \ endif
 


^ permalink raw reply related	[flat|nested] 8+ messages in thread

* [gentoo-commits] proj/gentoo-syntax:master commit in: ftdetect/
@ 2018-08-14 13:55 Michał Górny
  0 siblings, 0 replies; 8+ messages in thread
From: Michał Górny @ 2018-08-14 13:55 UTC (permalink / raw
  To: gentoo-commits

commit:     604d85f810300b04dbe5139c65f31ebe3055eea8
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Fri Sep 15 12:43:11 2017 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Tue Aug 14 13:55:25 2018 +0000
URL:        https://gitweb.gentoo.org/proj/gentoo-syntax.git/commit/?id=604d85f8

ftdetect: Account for GLEPs using .rst suffix

 ftdetect/gentoo.vim | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/ftdetect/gentoo.vim b/ftdetect/gentoo.vim
index 305d567..610c6ef 100644
--- a/ftdetect/gentoo.vim
+++ b/ftdetect/gentoo.vim
@@ -18,7 +18,7 @@ au BufNewFile,BufRead *.e{build,class}
     \     set filetype=ebuild
 
 " GLEPs
-au BufNewFile,BufRead *.txt
+au BufNewFile,BufRead *.txt,*.rst
     \ if (getline(1) =~? "^GLEP: ") |
     \     set filetype=glep |
     \ endif


^ permalink raw reply related	[flat|nested] 8+ messages in thread

* [gentoo-commits] proj/gentoo-syntax:master commit in: ftdetect/
@ 2018-08-14 13:55 Michał Górny
  0 siblings, 0 replies; 8+ messages in thread
From: Michał Górny @ 2018-08-14 13:55 UTC (permalink / raw
  To: gentoo-commits

commit:     507a0c9bda6a63abf74d4eb62f0d55171609e724
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Fri Sep 15 12:43:58 2017 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Tue Aug 14 13:55:25 2018 +0000
URL:        https://gitweb.gentoo.org/proj/gentoo-syntax.git/commit/?id=507a0c9b

ftdetect: Account for GLEPs using YAML-compatible preamble

 ftdetect/gentoo.vim | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/ftdetect/gentoo.vim b/ftdetect/gentoo.vim
index 610c6ef..d5f6808 100644
--- a/ftdetect/gentoo.vim
+++ b/ftdetect/gentoo.vim
@@ -19,7 +19,7 @@ au BufNewFile,BufRead *.e{build,class}
 
 " GLEPs
 au BufNewFile,BufRead *.txt,*.rst
-    \ if (getline(1) =~? "^GLEP: ") |
+    \ if (getline(1) =~? "^GLEP: " || getline(2) =~? "^GLEP: ") |
     \     set filetype=glep |
     \ endif
 


^ permalink raw reply related	[flat|nested] 8+ messages in thread

* [gentoo-commits] proj/gentoo-syntax:master commit in: ftdetect/
@ 2018-08-14 13:57 Michał Górny
  0 siblings, 0 replies; 8+ messages in thread
From: Michał Górny @ 2018-08-14 13:57 UTC (permalink / raw
  To: gentoo-commits

commit:     8236f36bc4ba12104bbf06b1f5ea03e8c4ff2c18
Author:     sluidfoe <sluidfoe <AT> gmail <DOT> com>
AuthorDate: Thu Sep 21 21:50:51 2017 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Tue Aug 14 13:56:55 2018 +0000
URL:        https://gitweb.gentoo.org/proj/gentoo-syntax.git/commit/?id=8236f36b

ftdetect/gentoo.vim: detect init files by shebang

Use only the shebang/interpreter value to detect
/sbin/{openrc-run,runscript} files, do not only detect them underneath
a directory called "files."

Closes: https://github.com/gentoo/gentoo-syntax/pull/16

 ftdetect/gentoo.vim | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/ftdetect/gentoo.vim b/ftdetect/gentoo.vim
index d5f6808..a7ae000 100644
--- a/ftdetect/gentoo.vim
+++ b/ftdetect/gentoo.vim
@@ -33,7 +33,7 @@ au BufNewFile,BufRead ChangeLog*
 au BufNewFile,BufRead /etc/init.d/*
     \     set filetype=gentoo-init-d |
 
-au BufNewFile,BufRead /*/files/*
+au BufNewFile,BufRead *
     \ if (getline(1) =~? "#!/sbin/\\(runscript\\|openrc-run\\)") |
     \     set filetype=gentoo-init-d |
     \ endif


^ permalink raw reply related	[flat|nested] 8+ messages in thread

* [gentoo-commits] proj/gentoo-syntax:master commit in: ftdetect/
@ 2021-02-07  0:29 Vadim Misbakh-Soloviov
  0 siblings, 0 replies; 8+ messages in thread
From: Vadim Misbakh-Soloviov @ 2021-02-07  0:29 UTC (permalink / raw
  To: gentoo-commits

commit:     1b6d372fd407c82de927dcd669b901d55c488c52
Author:     Vadim Misbakh-Soloviov <mva <AT> gentoo <DOT> org>
AuthorDate: Sun Nov 15 00:06:07 2020 +0000
Commit:     Vadim Misbakh-Soloviov <mva <AT> gentoo <DOT> org>
CommitDate: Sun Feb  7 00:25:11 2021 +0000
URL:        https://gitweb.gentoo.org/proj/gentoo-syntax.git/commit/?id=1b6d372f

env and bashrc would benefit from ft=ebuild

Signed-off-by: Vadim Misbakh-Soloviov <mva <AT> gentoo.org>

 ftdetect/gentoo.vim | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/ftdetect/gentoo.vim b/ftdetect/gentoo.vim
index 0c0db40..b8c14ac 100644
--- a/ftdetect/gentoo.vim
+++ b/ftdetect/gentoo.vim
@@ -90,6 +90,10 @@ au BufNewFile,BufRead metadata.xml
 au BufNewFile,BufRead {*/portage/repos.conf,*/portage/repos.conf/*.conf}
     \     set filetype=dosini
 
+" portage/env/*
+au BufNewFile,BufRead */portage/{env/*,bashrc}
+    \     set filetype=ebuild
+
 " guidexml
 au BufNewFile,BufRead *.xml
     \     if getline(1) =~ "<!DOCTYPE \\(guide\\|news\\|mainpage\\|book\\|sections\\|dynamic\\|inserts\\) " ||


^ permalink raw reply related	[flat|nested] 8+ messages in thread

* [gentoo-commits] proj/gentoo-syntax:master commit in: ftdetect/
@ 2021-02-07  0:29 Vadim Misbakh-Soloviov
  0 siblings, 0 replies; 8+ messages in thread
From: Vadim Misbakh-Soloviov @ 2021-02-07  0:29 UTC (permalink / raw
  To: gentoo-commits

commit:     33dfc1c4f3676b10f3980089d1c41d45514ae7a3
Author:     Vadim Misbakh-Soloviov <mva <AT> gentoo <DOT> org>
AuthorDate: Sat Nov 14 23:49:03 2020 +0000
Commit:     Vadim Misbakh-Soloviov <mva <AT> gentoo <DOT> org>
CommitDate: Sun Feb  7 00:25:11 2021 +0000
URL:        https://gitweb.gentoo.org/proj/gentoo-syntax.git/commit/?id=33dfc1c4

package.env also uses package.use-like syntax

Signed-off-by: Vadim Misbakh-Soloviov <mva <AT> gentoo.org>

 ftdetect/gentoo.vim | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/ftdetect/gentoo.vim b/ftdetect/gentoo.vim
index a7ae000..b8f169f 100644
--- a/ftdetect/gentoo.vim
+++ b/ftdetect/gentoo.vim
@@ -59,7 +59,7 @@ au BufNewFile,BufRead {*/package.{accept_,}keywords,*/portage/package.{accept_,}
     \     set filetype=gentoo-package-keywords
 
 " package.use
-au BufNewFile,BufRead {*/package.use,*/portage/package.use/*}
+au BufNewFile,BufRead {*/package.use,*/portage/package.use/*,*/package.env,*/portage/package.env/*}
     \     set filetype=gentoo-package-use
 
 " package.license


^ permalink raw reply related	[flat|nested] 8+ messages in thread

* [gentoo-commits] proj/gentoo-syntax:master commit in: ftdetect/
@ 2021-02-07  0:29 Vadim Misbakh-Soloviov
  0 siblings, 0 replies; 8+ messages in thread
From: Vadim Misbakh-Soloviov @ 2021-02-07  0:29 UTC (permalink / raw
  To: gentoo-commits

commit:     c37db2bbf264ec221e4c47c722524de59641371c
Author:     Vadim Misbakh-Soloviov <mva <AT> gentoo <DOT> org>
AuthorDate: Sat Nov 14 23:50:08 2020 +0000
Commit:     Vadim Misbakh-Soloviov <mva <AT> gentoo <DOT> org>
CommitDate: Sun Feb  7 00:25:11 2021 +0000
URL:        https://gitweb.gentoo.org/proj/gentoo-syntax.git/commit/?id=c37db2bb

repos.conf also uses ini-like syntax

Signed-off-by: Vadim Misbakh-Soloviov <mva <AT> gentoo.org>

 ftdetect/gentoo.vim | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/ftdetect/gentoo.vim b/ftdetect/gentoo.vim
index b8f169f..0c0db40 100644
--- a/ftdetect/gentoo.vim
+++ b/ftdetect/gentoo.vim
@@ -86,6 +86,10 @@ au BufNewFile,BufRead use.{local.,}desc
 au BufNewFile,BufRead metadata.xml
     \     set filetype=gentoo-metadata
 
+" repos.conf
+au BufNewFile,BufRead {*/portage/repos.conf,*/portage/repos.conf/*.conf}
+    \     set filetype=dosini
+
 " guidexml
 au BufNewFile,BufRead *.xml
     \     if getline(1) =~ "<!DOCTYPE \\(guide\\|news\\|mainpage\\|book\\|sections\\|dynamic\\|inserts\\) " ||


^ permalink raw reply related	[flat|nested] 8+ messages in thread

* [gentoo-commits] proj/gentoo-syntax:master commit in: ftdetect/
@ 2023-02-08 16:43 Michał Górny
  0 siblings, 0 replies; 8+ messages in thread
From: Michał Górny @ 2023-02-08 16:43 UTC (permalink / raw
  To: gentoo-commits

commit:     8340095e5a8263494abadf5a81970ff92091e004
Author:     Richard-Rogalski <rrogalski <AT> tutanota <DOT> com>
AuthorDate: Sun Feb  5 13:17:54 2023 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Wed Feb  8 16:43:09 2023 +0000
URL:        https://gitweb.gentoo.org/proj/gentoo-syntax.git/commit/?id=8340095e

Enable syntax detection for make.conf as a directory

Technically, make.conf can be a directory, and I use it as
one :). Niche use case but works \o/

Signed-off-by: Richard Rogalski <rrogalski <AT> tutanota.com>
Closes: https://github.com/gentoo/gentoo-syntax/pull/54
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>

 ftdetect/gentoo.vim | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/ftdetect/gentoo.vim b/ftdetect/gentoo.vim
index b89f058..b2ed1bd 100644
--- a/ftdetect/gentoo.vim
+++ b/ftdetect/gentoo.vim
@@ -75,7 +75,7 @@ au BufNewFile,BufRead {*/thirdpartymirrors,*/portage/mirrors}
     \     set filetype=gentoo-mirrors
 
 " make.conf
-au BufNewFile,BufRead make.{conf,globals}
+au BufNewFile,BufRead {*/make.{conf,globals},*/portage/make.conf/*}
     \     set filetype=gentoo-make-conf
 
 " use.desc


^ permalink raw reply related	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2023-02-08 16:43 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-08-14 13:57 [gentoo-commits] proj/gentoo-syntax:master commit in: ftdetect/ Michał Górny
  -- strict thread matches above, loose matches on Subject: below --
2023-02-08 16:43 Michał Górny
2021-02-07  0:29 Vadim Misbakh-Soloviov
2021-02-07  0:29 Vadim Misbakh-Soloviov
2021-02-07  0:29 Vadim Misbakh-Soloviov
2018-08-14 13:55 Michał Górny
2018-08-14 13:55 Michał Górny
2016-05-30  3:09 Tim Harder

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox