Commit Graph

421 Commits

Author SHA1 Message Date
Caleb Maclennan
d9366fc27c Add filetype for bind-named (similar to named, used by some plugins) 2021-04-30 12:31:10 +03:00
Gabriel Nagy
6d0ab7dec9 Add hocon filetype (#465)
Add support for commenting hocon files.

[1] https://github.com/lightbend/config/blob/main/HOCON.md#comments
2021-04-06 09:57:40 +03:00
Adrien Lemaire
16ecc429ec Add neo4j cypher filetype (#464)
Let nerdcommenter properly comment cypher files.

* [extension recommendation](https://neo4j.com/docs/cypher-manual/current/styleguide/#cypher-styleguide-general-recommendations)
* [comments syntax](https://neo4j.com/docs/cypher-manual/current/syntax/comments/)
2021-02-27 12:25:37 +03:00
Bertold Sedlak
1c7b57608e Add UC4 Filetype (#462)
Add Support for UC4 Scripts as used by Automic Automation Engine
See docs for details:
https://docs.automic.com/documentation/webhelp/english/AWA/11.2/AE/11.2/All%20Guides/Content/ucabqx.htm
2021-02-18 06:44:26 +03:00
kevinhwang91
b83e9cdf83 fix: uncomment Lua in sexy mode with NERDCompactSexyComs=1 (#451) 2021-02-02 10:29:10 +03:00
John Flores
898de2de1b Update rego comment to # (#459) 2021-01-31 09:41:13 +03:00
Alex Hübner
2955d669dc Fix leftAlt for filetype rmd (#458) 2021-01-27 11:22:41 +03:00
Tiger Nie
7be3292b8d Add support for jsonc (#455) 2021-01-19 12:38:54 +03:00
Repon Kumar Roy
119b99d166 Add support for the jsonnet language (#450)
Co-authored-by: Repon Kumar Roy <kowshik.roy@grabtaxi.com>
2020-12-11 12:19:05 +03:00
Cristiano De Michele
f02686f2f6 Fix alternative delimiter issue #425 (#440)
Co-authored-by: Cristiano De Michele <cristiano.demichele@uniroma1.it>
2020-12-03 12:33:37 +03:00
Priyansh Saxena
3441a98b2d Add support for Rego (Open Policy Agent) (#446) 2020-12-01 09:37:49 +03:00
Sybrand Aarnoutse
85750560a6 Add delimiter for the nix language. (#442) 2020-10-30 22:25:01 +03:00
Caleb Maclennan
6b49172f9b Remove obsolete (unmaintained) fold markers
The fold markers were unmaintained anyway and hence not working. No
folding is better than broken folding, and setting nothing allows user
configs such as language syntax based folding to work properly.
2020-06-08 15:21:00 +03:00
Caleb Maclennan
480799db6d Merge pull request #411 from preservim/license-cc0 2020-06-08 14:25:18 +03:00
Caleb Maclennan
f72adff404 Remove obsolete file comments header
The days when vim plugins were distributed as individual files are long
gone, these days they are almost always git repositories or tarballs. As
such the relevant meta data is included, just not in this way. Not only
does this information have a habit of being absurdly out of date, it's
not really useful any more to try to update it.
2020-06-08 14:17:44 +03:00
Jaehwang Jerry Jung
c62e618a1a Make insert independent of whichwrap setting (#419)
If `set whichwrap+=l`, `normal! l` may move the cursor to the next line.
Use `feedkeys('a', 'ni')` instead.
2020-02-19 07:52:10 +03:00
Caleb Maclennan
fa00e9820c Use Jinja comment style first, HTML as alternate (closes #414) 2020-01-23 23:36:27 +03:00
Caleb Maclennan
6f1f2894cb Use HTML comment syntax for Rmarkdown
Closes #415

While Markdown doesn't officially have a comment syntax, HTML comments
are widely parsed as such. This is what most Markdown treat as Markdown
comments. As a Markdown derivative it seams logical to do the same thing
in Rmarkdown.

The previously added '#' syntax seems to be for inside code blocks, and
that would be language dependent anyway. I've left the hash option as
the alternate.
2020-01-23 22:18:50 +03:00
li-zhaoyang
53f5710627 Added 'Interface' section to the documention 2020-01-21 14:42:18 +08:00
li-zhaoyang
eb6243c0c8 Finished and tested NERDCommentIsCharCommented() 2020-01-21 04:16:18 +08:00
li-zhaoyang
70b5b933cd First version of 'NERDCommentIsCharCommented' API (Untested) 2020-01-20 19:49:52 +08:00
Caleb Maclennan
6295aeba66 Fix lint warning: use the full option names 2019-12-30 11:12:01 +03:00
Caleb Maclennan
277986725d Fix lint warning: use robust operators 2019-12-30 11:10:13 +03:00
Caleb Maclennan
ac3db1e70a Fix lint warning: prefer single quoted strings 2019-12-30 10:59:03 +03:00
Caleb Maclennan
6d51d1b334 Fix VimL syntax error 2019-12-30 10:51:34 +03:00
Caleb Maclennan
8786861a3c Update repository URLs with new org namespace
See https://github.com/preservim/nerdcommenter/issues/400

Old URLs will continue to work for the foreseeable future since Github
forwards them, but new users in particular should be encouraged to use
the new org namespace when installing the plugin.
2019-12-29 11:15:59 +03:00
Jaskaran Singh
ce590719f6 Add semantic patch (.cocci) to delimiterMap (#408)
Coccinelle is a tool used for transforming C source code. It
uses the Semantic Patch Language (.cocci files) for doing this.
The conventional notation for commenting in semantic patches
is "//".

Used in conjunction with this plugin:

https://github.com/ahf/cocci-syntax

The cocci filetype is set, following which NERD_commenter can
be used in .cocci files.

Signed-off-by: Jaskaran Singh <jaskaransingh7654321@gmail.com>
2019-12-21 10:59:38 +03:00
Caleb Maclennan
023f2d10d5 Add snakemake filetype support, closes #313 2019-12-20 07:39:47 +03:00
Nicholas Cronquist
023cc20324 Add new delimiter for Hashicorp 'sentinel' files (#406)
- Sentinel is a new language developed by Hashicorp
- Sentinel supports three types of comments, `#` and `//` for single
  line comments and `/* ... */` for multi-line comments as described
  in their documentation - https://docs.hashicorp.com/sentinel/language/spec/#comments
  - Since sentinel and terraform, .tf extension, are related, the `#`
    symbol was chosen to keep in line with the tf single line comment
2019-11-26 10:11:36 +03:00
Rory Bradford
9208286236 Add syntax for troff family languages (#397) 2019-10-05 17:39:51 +03:00
Caleb Maclennan
a4b7c046b3 Fix Fluent file type as set by fluent.vim 2019-09-26 14:32:49 +03:00
horst5000
50f307bbf6 Change delimiters of CUDA to match the defaults of C/C++ 2019-09-20 09:34:14 +03:00
Caleb Maclennan
8228c7b0a7 Add comment syntax for FTL (Fluent) filetype 2019-09-13 14:30:20 +03:00
impulse
2504a3d84e Add comment styles for React filetypes .jsx/.tsx (#393)
Note that to-date there has not been an official vim filetype for
React-Javascript and React-Typescript. The `javascriptreact` and
`typescriptreact` filetypes were added upstream to both Vim (8.1.1890)
and NeoVim during the course of discussion on this PR.

Some other Vim plugins are known to use filetype hacks such as
`javascript.jsx` or `typescript.jsx`. This plugin supports the now
official upstream designations. If this conflicts with your usage you
can either tweak the other plugins (and/or submit a fix to use the
official filetypes upstream) or add custom file type comment setting in
your vim rc/init file.

Co-Authored-By: Caleb Maclennan <caleb@alerque.com>
2019-08-27 13:58:11 +03:00
ufengzh
df2f6825f4 Add proto filetype to support protobuf (#390) 2019-08-06 16:08:49 +03:00
Brent McKain
7f5c217f79 Add multipart/block comments to SQL filetype
Fixes #382
2019-07-03 16:47:32 +03:00
Edison Lim
14cd7719ac feat: added scilla support (#381) 2019-06-18 09:16:06 +03:00
Caleb Maclennan
17cec9747e Add Ledger file support 2019-06-08 14:12:40 +03:00
grenzionky
e6fd663def Add gdscript filetype (#378) 2019-06-04 16:58:21 +03:00
Jingchang Shi
17b68e47d7 Add an option: NERDDisableTabsInBlockComm (#374)
* Add an option: NERDDisableTabsInBlockComm. 1 disables adding tabs before the comment symbols in the block style.
* Add doc for the new option.
2019-04-17 12:11:07 +03:00
Lane
67950d4b5d Make g:NERDToggleCheckAllLines not check blank/whitespace-only lines (#355) 2019-04-17 09:49:38 +03:00
Caleb Maclennan
f46226bcd6 Remove apparently bogus filetype
I can't find any record of this being a legitimate filetype. It isn't in
vim or nvim's filetype detection system and nothing comes up in search.
If it's legit somebody can complain and we'll add it back, but it seems
likely this was left over from a fat-fingered mistake during the initial
development of the plugin.

Fixes #363
2019-03-07 12:00:42 +03:00
Caleb Maclennan
5100f47542 Add kivy file format, fixes #361 2019-02-14 09:50:24 +03:00
Caleb Maclennan
5ac43900e9 Strip trailing whitespace 2019-02-14 09:48:49 +03:00
MeNsaaH
3427b2f4ef updated Django comments (#359)
* updated Django comments
* Adding alternate comments for django
2019-02-04 12:13:20 +03:00
glegodais
371e4d0e09 Add support for Faust (#354) 2018-12-26 14:11:50 +03:00
Maarten van der Hoef
d24868bc85 Terraform replacing Transcript File (#350) 2018-12-03 16:22:57 +03:00
keysen
fdf950f20b Fix ruby comments, totally broken with =begin and =end (#340) 2018-07-31 20:29:13 +03:00
Zachary Churchill
f9dd87271a Swap default comment style to be more idiomatic of haskell (#343)
See discussion at https://github.com/scrooloose/nerdcommenter/pull/343
2018-07-28 06:52:07 +03:00
fcying
9a32fd2534 Add NERDToggleCheckAllLines option to NERDCommenterToggle (#334) 2018-06-21 11:06:22 +03:00