Skip to content

Instantly share code, notes, and snippets.

@paulp
Created September 26, 2014 16:14
Show Gist options
  • Save paulp/485b6c11cc9c63035bd4 to your computer and use it in GitHub Desktop.
Save paulp/485b6c11cc9c63035bd4 to your computer and use it in GitHub Desktop.
{
"named_patterns" : {
"first_equal" : " = (?:.*?[^{]$)/f",
"first_comma" : ", /f",
"first_colon" : ": /f",
"all_space" : "\\s+/l1l0",
"hocon" : ": (?:.*?[^{]$)/r1l1l1f",
"typed" : "[:]/r0c1l1f",
"bash_var" : "[$][(]|[|][|]|[)]|[#]",
"sbt_operator" : "[&|@#<+:~]+[=][ ]/r1c1l1",
"quoted_string" : "[\"](?:[^\"\\\\]|\\\\.)*[\"]",
"first_arrow" : "(?<!:) [-=][>] /l1c1l1f",
"sbt_module" : "(?: = | %+ )/lrllclclclcl",
"align_generic" : "(?: [-=]>(?: |$)| [:+]{1,}= )/l1rf",
"align_esac" : "(?:[)]|[;][;])/r0c1l1",
"json" : ":(?!.*[{])/r1c1l1f1",
"bang" : "[!]/r1c1l1f1",
"one_line_method" : "[ ][=][ ](?:.*?[^{]$)/l1f",
"one_line_class" : " extends |[ ][=][ ]| [{] | [}]$"
},
// disable auto_match in the input panel
"auto_match_enabled": false
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment