Skip to content

Latest commit

 

History

History
114 lines (83 loc) · 1.27 KB

README.md

File metadata and controls

114 lines (83 loc) · 1.27 KB

Mason

Join the chat at https://gitter.im/fmaj7/Mason

Mason Syntax and Snippets for Sublime Text 2

Install

Install via Package Control

File Types Supported

.m .mi .mc .md autohandler dhandler mhtml

Goto Symbol

Any named block defined by <%def>, <%method> and <%closure>

Snippets [trigger: details]

args: <%args> block

<%args>
  ${1} => ${2}
</%args>

class: <%class> block

<%class>
  ${1}
</%class>

comp: <& &> tag

<& "${1}"${2:, "$3" => $4} &>

def: <%def> block

<%def .${1}>
  <%args>
    ${2}
  </%args>

  <%perl>
    ${3}
  </%perl>
</%def>

doc: <%doc> block

<%doc>
  ${1}
</%doc>

init: <%init> block

<%init>
  ${1}
</%init>

mcomp: $m->comp()

$m->comp("${1}"${2:, "$3" => $4});

method: <%method> block

<%method ${1}>
  <%args>
    ${2}
  </%args>

  <%perl>
    ${3}
  </%perl>
</%method>

once: <%once> block

<%once>
  ${1}
</%once>

perl: <%perl> block

<%perl>
  ${1}
</%perl>