Skip to content

Commit

Permalink
Add Elixir (sublimehq#8)
Browse files Browse the repository at this point in the history
  • Loading branch information
hkrutzer authored Feb 12, 2021
1 parent ff6d8e5 commit a5e4548
Show file tree
Hide file tree
Showing 8 changed files with 2,769 additions and 0 deletions.
61 changes: 61 additions & 0 deletions Elixir/Elixir (EEx).sublime-syntax
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
%YAML 1.2
---
# TODO: uncomment when on separate ST4 branch in the future.
# version: 2
name: Elixir (EEx)
file_extensions:
- ex.eex
- exs.eex
first_line_match: ^#\s*exs?\.eex
scope: source.ex.eex
extends: Elixir.sublime-syntax

contexts:
main:
- include: core_syntax

# Commented out because ST3 complains.
# TODO: uncomment when on separate ST4 branch in the future.

# # prototype:
# core_syntax:
# - meta_prepend: true
# - include: eex

# defmodule_1st_argument:
# - meta_prepend: true
# - include: eex

# # FIXME: doesn't highlight inside doc comments yet.
# markdown_comment:
# - meta_prepend: true
# - include: eex

# simple_string:
# - meta_prepend: true
# - include: eex

# block_end_pop:
# - meta_prepend: true
# - include: eex

# module_function_call_pop:
# - meta_prepend: true
# - include: eex

# identifier_operator_call_pop:
# - meta_prepend: true
# - include: eex

# dot_accessor:
# - meta_prepend: true
# - include: eex

# eex:
# - match: <%(?>%=?|[=/|]?)
# scope: keyword.other.ex.eex punctuation.section.embedded.begin.ex.eex
# push:
# - match: '%>'
# scope: text.html.ex.eex keyword.other.ex.eex punctuation.section.embedded.end.ex.eex
# pop: true
# - include: core_syntax
Loading

0 comments on commit a5e4548

Please sign in to comment.