Skip to content
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

Recent commit broke comments that aren't at the beginning of the line #176

Closed
jcelliott opened this issue Sep 12, 2016 · 1 comment
Closed
Labels

Comments

@jcelliott
Copy link

jcelliott commented Sep 12, 2016

For example:

IO.puts("testing") # it's a comment!

Broken in acb289e. Reverting the line that caused the problem fixes it, but I'm not sure if it will break anything else:

diff --git a/syntax/elixir.vim b/syntax/elixir.vim
index 1c56b95..1e4b2c7 100644
--- a/syntax/elixir.vim
+++ b/syntax/elixir.vim
@@ -13,7 +13,7 @@ syn cluster elixirRegexSpecial contains=elixirRegexEscape,elixirRegexCharClass,e
 syn cluster elixirStringContained contains=elixirInterpolation,elixirRegexEscape,elixirRegexCharClass
 syn cluster elixirDeclaration contains=elixirFunctionDeclaration,elixirModuleDeclaration,elixirProtocolDeclaration,elixirImplDeclaration,elixirRecordDeclaration,elixirMacroDeclaration,elixirDelegateDeclaration,elixirOverridableDeclaration,elixirExceptionDeclaration,elixirCallbackDeclaration,elixirStructDeclaration

-syn match elixirComment '^\s*#.*' contains=elixirTodo,@Spell
+syn match elixirComment '#.*' contains=elixirTodo,@Spell
 syn keyword elixirTodo FIXME NOTE TODO OPTIMIZE XXX HACK contained

 syn keyword elixirKeyword case when with cond for if unless try receive send
@kassio kassio added the bug label Sep 13, 2016
@kassio
Copy link
Member

kassio commented Sep 13, 2016

related: #175, acb289e

@kassio kassio closed this as completed in 32a1027 Sep 13, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants