Skip to content

Syntax: Add doc delimiters #470

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Feb 12, 2019

Conversation

bryanenders
Copy link
Member

Why

I want to be able to differentiate between ordinary delimiters and those used for docs

How

  • Add elixirDocSigilDelimiter group
  • Add elixirDocStringDelimiter group
  • Link elixirDocStringDelimiter and elixirDocStringDelimiter to elixirStringDelimiter and elixirSigilDelimiter to preserve existing behavior

@jbodah
Copy link
Collaborator

jbodah commented Feb 12, 2019

Looks fine to me - would you mind adding a simple test to make sure we don't regress on this if we refactor the syntax rules? There should be some examples in https://github.com/elixir-editors/vim-elixir/blob/master/spec/syntax/doc_spec.rb

Why
---

I want to be able to differentiate between ordinary delimiters and
those used for docs

How
---

* Add doc syntax specs
* Add **elixirDocSigilDelimiter** group
* Add **elixirDocStringDelimiter** group
* Link **elixirDocStringDelimiter** and **elixirDocStringDelimiter** to
  **elixirStringDelimiter** and **elixirSigilDelimiter** to preserve
  existing behavior
@bryanenders bryanenders force-pushed the syntax/doc-delimiters branch from 4690188 to e26f5d8 Compare February 12, 2019 18:54
@bryanenders
Copy link
Member Author

@jbodah Updated

@jbodah jbodah merged commit a4991c9 into elixir-editors:master Feb 12, 2019
@jbodah
Copy link
Collaborator

jbodah commented Feb 12, 2019

Thanks!

@bryanenders bryanenders deleted the syntax/doc-delimiters branch February 12, 2019 20:20
kelvinst pushed a commit to kelvinst/vim-elixir that referenced this pull request Aug 21, 2019
Why
---

I want to be able to differentiate between ordinary delimiters and
those used for docs

How
---

* Add doc syntax specs
* Add **elixirDocSigilDelimiter** group
* Add **elixirDocStringDelimiter** group
* Link **elixirDocStringDelimiter** and **elixirDocStringDelimiter** to
  **elixirStringDelimiter** and **elixirSigilDelimiter** to preserve
  existing behavior
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants