-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Update elixir #2773
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
Update elixir #2773
Changes from all commits
Commits
Show all changes
17 commits
Select commit
Hold shift + click to select a range
b5abdd7
Update elixir
gordalina 2b6afff
Give precedence to doc/moduledoc than comment
gordalina 311a508
Simplify patterns
gordalina 8a2a8c2
Update test-suite
gordalina 6b61080
Update components/prism-elixir.js
gordalina 4d7d9b3
Code review fixes
gordalina c114f6c
Replace module & function with supersets
gordalina 183fa94
Update doc to only parse strings
gordalina 9b06d01
Update build
gordalina 514fa48
Update components/prism-elixir.js
gordalina 6947c69
Update components/prism-elixir.js
gordalina dac119b
Update components/prism-elixir.js
gordalina db13dfd
Code review changes
gordalina df1647e
Update function tokenizer
gordalina 56de037
Build
gordalina 06e0523
Update components/prism-elixir.js
gordalina bf45116
Update build
gordalina File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,28 +1,56 @@ | ||
| &Math.zero?(0) | ||
| fun = &Math.zero?/1 | ||
| (&is_function/1).(fun) | ||
| fun = &(&1 + 1) | ||
| &List.flatten(&1, &2) | ||
|
|
||
| fun = &Math.zero?/invalid | ||
|
|
||
| ---------------------------------------------------- | ||
|
|
||
| [ | ||
| "fun ", ["operator", "="], | ||
| ["capture", "&Math.zero?/1"], | ||
RunDevelopment marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| ["operator", "&"], | ||
| ["module", "Math"], | ||
| ["punctuation", "."], | ||
| ["function", "zero?" ], | ||
| ["punctuation", "("], | ||
| ["capture", "&is_function/1"], | ||
| ["number", "0"], | ||
| ["punctuation", ")"], | ||
| "\r\nfun ", ["operator", "="], | ||
| ["operator", "&"], | ||
| ["module", "Math"], | ||
| ["punctuation", "."], | ||
| ["function", "zero?" ], | ||
| ["operator", "/"], | ||
| ["number", "1"], | ||
| ["punctuation", "("], | ||
| ["operator", "&"], | ||
| ["function", "is_function"], | ||
| ["operator", "/"], | ||
| ["number", "1"], | ||
| ["punctuation", ")"], | ||
| ["punctuation", "."], | ||
| ["punctuation", "("], "fun", ["punctuation", ")"], | ||
| "\r\nfun ", ["operator", "="], | ||
| ["capture", "&"], | ||
| ["operator", "&"], | ||
| ["punctuation", "("], ["argument", "&1"], | ||
| ["operator", "+"], ["number", "1"], ["punctuation", ")"], | ||
| ["capture", "&List.flatten"], | ||
| ["operator", "&"], | ||
| ["module", "List"], | ||
| ["punctuation", "."], ["function", "flatten"], | ||
| ["punctuation", "("], ["argument", "&1"], | ||
| ["punctuation", ","], ["argument", "&2"], | ||
| ["punctuation", ")"] | ||
| ["punctuation", ")"], | ||
| "\r\n\r\nfun ", | ||
| [ "operator", "=" ], | ||
| [ "operator", "&" ], | ||
| [ "module", "Math" ], | ||
| [ "punctuation", "." ], | ||
| "zero?", | ||
| [ "operator", "/" ], | ||
| "invalid" | ||
| ] | ||
|
|
||
| ---------------------------------------------------- | ||
|
|
||
| Checks for function capturing and arguments. | ||
| Checks for function capturing and arguments. | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,56 @@ | ||
| @doc "single" | ||
| @doc 'single' | ||
| @doc """triple""" | ||
| @doc '''triple''' | ||
| @doc ''' | ||
| multiline | ||
| ''' | ||
| @doc """ | ||
| multiline | ||
| """ | ||
| @doc since: "1.3.0" | ||
| @doc deprecated: "phased out" | ||
|
|
||
| @moduledoc "single" | ||
| @moduledoc 'single' | ||
| @moduledoc """triple""" | ||
| @moduledoc '''triple''' | ||
| @moduledoc ''' | ||
| multiline | ||
| ''' | ||
| @moduledoc """ | ||
| multiline | ||
| """ | ||
| @moduledoc since: "1.3.0" | ||
| @moduledoc deprecated: "phased out" | ||
|
|
||
| ---------------------------------------------------- | ||
|
|
||
| [ | ||
| [ "doc", [ [ "attribute", "@doc" ], [ "string", "\"single\"" ] ] ], | ||
| [ "doc", [ [ "attribute", "@doc" ], [ "string", "'single'" ] ] ], | ||
| [ "doc", [ [ "attribute", "@doc" ], [ "string", "\"\"\"triple\"\"\"" ] ] ], | ||
| [ "doc", [ [ "attribute", "@doc" ], [ "string", "'''triple'''" ] ] ], | ||
| [ "doc", [ [ "attribute", "@doc" ], [ "string", "'''\nmultiline\n'''" ] ] ], | ||
| [ "doc", [ [ "attribute", "@doc" ], [ "string", "\"\"\"\nmultiline\n\"\"\"" ] ] ], | ||
| [ "attribute", "@doc" ], | ||
| [ "attr-name", "since:" ], | ||
| [ "string", [ "\"1.3.0\"" ] ], | ||
| [ "attribute", "@doc" ], | ||
| [ "attr-name", "deprecated:" ], | ||
| [ "string", [ "\"phased out\"" ] ], | ||
| [ "doc", [ [ "attribute", "@moduledoc" ], [ "string", "\"single\"" ] ] ], | ||
| [ "doc", [ [ "attribute", "@moduledoc" ], [ "string", "'single'" ] ] ], | ||
| [ "doc", [ [ "attribute", "@moduledoc" ], [ "string", "\"\"\"triple\"\"\"" ] ] ], | ||
| [ "doc", [ [ "attribute", "@moduledoc" ], [ "string", "'''triple'''" ] ] ], | ||
| [ "doc", [ [ "attribute", "@moduledoc" ], [ "string", "'''\nmultiline\n'''" ] ] ], | ||
| [ "doc", [ [ "attribute", "@moduledoc" ], [ "string", "\"\"\"\nmultiline\n\"\"\"" ] ] ], | ||
| [ "attribute", "@moduledoc" ], | ||
| [ "attr-name", "since:" ], | ||
| [ "string", [ "\"1.3.0\"" ] ], | ||
| [ "attribute", "@moduledoc" ], | ||
| [ "attr-name", "deprecated:" ], | ||
| [ "string", [ "\"phased out\"" ] ] | ||
| ] | ||
|
|
||
| ---------------------------------------------------- |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.