text
stringlengths
9
39.2M
dir
stringlengths
25
226
lang
stringclasses
163 values
created_date
timestamp[s]
updated_date
timestamp[s]
repo_name
stringclasses
751 values
repo_full_name
stringclasses
752 values
star
int64
1.01k
183k
len_tokens
int64
1
18.5M
```yaml filetype: nginx detect: filename: "nginx.*\\.conf$|\\.nginx$" header: "^(server|upstream)[a-z ]*\\{$" rules: - preproc: "\\b(events|server|http|location|upstream)[[:space:]]*\\{" - statement: "(^|[[:space:]{;])(access_log|add_after_body|add_before_body|add_header|addition_types|aio|alias|allow...
/content/code_sandbox/runtime/syntax/nginx.yaml
yaml
2016-03-11T02:06:28
2024-08-16T15:15:57
micro
zyedidia/micro
24,604
1,317
```yaml filetype: awk detect: filename: "\\.awk$" header: "^#!.*bin/(env +)?awk( |$)" rules: - preproc: "\\$[A-Za-z0-9_!@#$*?\\-]+" - preproc: "\\b(ARGC|ARGIND|ARGV|BINMODE|CONVFMT|ENVIRON|ERRNO|FIELDWIDTHS)\\b" - preproc: "\\b(FILENAME|FNR|FS|IGNORECASE|LINT|NF|NR|OFMT|OFS|ORS)\\b" - preproc:...
/content/code_sandbox/runtime/syntax/awk.yaml
yaml
2016-03-11T02:06:28
2024-08-16T15:15:57
micro
zyedidia/micro
24,604
519
```yaml filetype: css detect: filename: "\\.(css|scss)$" rules: # Classes and IDs - statement: "(?i)." # - normal: # start: "\\{" # end: "\\}" # rules: [] # css commands - type: "(align-content|align-items|alignment-baseline|align-self|all|animation|animation-delay|anim...
/content/code_sandbox/runtime/syntax/css.yaml
yaml
2016-03-11T02:06:28
2024-08-16T15:15:57
micro
zyedidia/micro
24,604
1,778
```yaml filetype: micro detect: filename: "\\.(micro)$" rules: - statement: "\\b(syntax|color(-link)?)\\b" - statement: "\\b(start=|end=)\\b" # Simple one-liners - identifier: "\\b(default|number|statement|underlined|error|todo|statusline|indent-char|cursor\\-line|color\\-column|ignore|divider|tab...
/content/code_sandbox/runtime/syntax/micro.yaml
yaml
2016-03-11T02:06:28
2024-08-16T15:15:57
micro
zyedidia/micro
24,604
422
```yaml filetype: freebsd-kernel detect: filename: "GENERIC$" rules: - identifier: "^(cpu|ident|options|makeoptions|device|include)" - statement: "\\s\\S*" - comment: start: "#" end: "$" rules: - todo: "(TODO|XXX|FIXME):?" ```
/content/code_sandbox/runtime/syntax/freebsd-kernel.yaml
yaml
2016-03-11T02:06:28
2024-08-16T15:15:57
micro
zyedidia/micro
24,604
79
```yaml filetype: ini detect: filename: "\\.(ini|desktop|lfl|override|tscn|tres)$|(mimeapps\\.list|pinforc|setup\\.cfg|project\\.godot)$|weechat/.+\\.conf$" rules: - constant.bool.true: "\\btrue\\b" - constant.bool.false: "\\bfalse\\b" - identifier: "^[[:space:]]*[^=]*=" - special: "^[[:space:]]*\...
/content/code_sandbox/runtime/syntax/ini.yaml
yaml
2016-03-11T02:06:28
2024-08-16T15:15:57
micro
zyedidia/micro
24,604
202
```yaml # # This syntax definition is based on the Terraform guide: # path_to_url # # Formatting is loosely based on Sublime's and VSCode's syntax highlighting for Terraform: # path_to_url # path_to_url # filetype: terraform detect: # File Extensions: # # - ".tf": the standard file extension # path_...
/content/code_sandbox/runtime/syntax/terraform.yaml
yaml
2016-03-11T02:06:28
2024-08-16T15:15:57
micro
zyedidia/micro
24,604
1,019
```yaml filetype: apacheconf detect: filename: "httpd\\.conf|mime\\.types|vhosts\\.d\\\\*|\\.htaccess" rules: - identifier: "(AcceptMutex|AcceptPathInfo|AccessFileName|Action|AddAlt|AddAltByEncoding|AddAltByType|AddCharset|AddDefaultCharset|AddDescription|AddEncoding)" - identifier: "(AddHandler|AddIcon|A...
/content/code_sandbox/runtime/syntax/apacheconf.yaml
yaml
2016-03-11T02:06:28
2024-08-16T15:15:57
micro
zyedidia/micro
24,604
1,734
```yaml filetype: vala detect: filename: "\\.vala$" rules: - type: "\\b(float|double|bool|u?char|u?int(8|16|32|64)?|u?short|u?long|void|s?size_t|unichar)\\b" - identifier.class: "[A-Za-z_][A-Za-z0-9_]*[[:space:]]*[()]" - statement: "\\b(for|if|while|do|else|case|default|switch|try|throw|catch)\\b" ...
/content/code_sandbox/runtime/syntax/vala.yaml
yaml
2016-03-11T02:06:28
2024-08-16T15:15:57
micro
zyedidia/micro
24,604
355
```yaml filetype: po detect: filename: "\\.pot?$" rules: - preproc: "\\b(msgid|msgstr)\\b" - constant.string: "\"(\\\\.|[^\"])*\"|'(\\\\.|[^'])*'" - special: "\\\\.?" - comment: "(^|[[:space:]])#([^{].*)?$" - indent-char.whitespace: "[[:space:]]+$" - indent-char: " + +| + +" ```
/content/code_sandbox/runtime/syntax/po.yaml
yaml
2016-03-11T02:06:28
2024-08-16T15:15:57
micro
zyedidia/micro
24,604
110
```yaml filetype: lua detect: filename: "\\.lua$" rules: - statement: "\\b(do|end|while|break|repeat|until|if|elseif|then|else|for|in|function|local|return|goto)\\b" - statement: "\\b(not|and|or)\\b" - statement: "\\b(debug|string|math|table|io|coroutine|os|utf8|bit32)\\b\\." - statement: "\\b(_EN...
/content/code_sandbox/runtime/syntax/lua.yaml
yaml
2016-03-11T02:06:28
2024-08-16T15:15:57
micro
zyedidia/micro
24,604
1,474
```yaml filetype: tex detect: filename: "\\.tex$|\\.bib$|\\.cls$" rules: # colorize the identifiers of {<identifier>} and [<identifier>] - identifier: start: "\\{" end: "\\}" rules: [] - identifier: start: "\\[" end: "\\]" rules: [] # numbers - c...
/content/code_sandbox/runtime/syntax/tex.yaml
yaml
2016-03-11T02:06:28
2024-08-16T15:15:57
micro
zyedidia/micro
24,604
249
```yaml filetype: jinja2 rules: - include: "html" - special: "({{|}}|{%-?|-?%})" - default: start: "({%-?|{{)" end: "(-?%}|}})" limit-group: special rules: - include: "python" - statement: "\\b(ignore missing|with(out)? context|block|call|endblock|endcall|endfi...
/content/code_sandbox/runtime/syntax/jinja2.yaml
yaml
2016-03-11T02:06:28
2024-08-16T15:15:57
micro
zyedidia/micro
24,604
344
```yaml filetype: pov detect: filename: "\\.(pov|POV|povray|POVRAY)$" rules: - preproc: "^[[:space:]]*#[[:space:]]*(declare)" - statement: "\\b(sphere|cylinder|translate|matrix|rotate|scale)\\b" - statement: "\\b(orthographic|location|up|right|direction|clipped_by)\\b" - statement: "\\b(fog_type|f...
/content/code_sandbox/runtime/syntax/pov.yaml
yaml
2016-03-11T02:06:28
2024-08-16T15:15:57
micro
zyedidia/micro
24,604
251
```yaml filetype: man detect: filename: "\\.[1-9]x?$" rules: - green: "\\.(S|T)H.*$" - brightgreen: "\\.(S|T)H|\\.TP" - brightred: "\\.(BR?|I[PR]?).*$" - brightblue: "\\.(BR?|I[PR]?|PP)" - brightwhite: "\\\\f[BIPR]" - yellow: "\\.(br|DS|RS|RE|PD)" ```
/content/code_sandbox/runtime/syntax/man.yaml
yaml
2016-03-11T02:06:28
2024-08-16T15:15:57
micro
zyedidia/micro
24,604
114
```yaml filetype: fortran detect: filename: "\\.([Ff]|[Ff]90|[Ff]95|[Ff][Oo][Rr])$" rules: - type: "(?i)\\b(action|advance|all|allocatable|allocated|any|apostrophe)\\b" - type: "(?i)\\b(append|asis|assign|assignment|associated|bind|character|common)\\b" - type: "(?i)\\b(complex|data|default|delim|d...
/content/code_sandbox/runtime/syntax/fortran.yaml
yaml
2016-03-11T02:06:28
2024-08-16T15:15:57
micro
zyedidia/micro
24,604
1,029
```yaml filetype: asm detect: filename: "\\.(S|s|asm)$" rules: # This file is made for NASM assembly ## Instructions # x86 - statement: "\\b(?i)(mov|aaa|aad|aam|aas|adc|add|and|call|cbw|clc|cld|cli|cmc|cmp|cmpsb|cmpsw|cwd|daa|das|dec|div|esc|hlt|idiv|imul|in|inc|int|into|iret|ja|jae|jb|jbe|jc|je|...
/content/code_sandbox/runtime/syntax/asm.yaml
yaml
2016-03-11T02:06:28
2024-08-16T15:15:57
micro
zyedidia/micro
24,604
4,824
```yaml filetype: cython detect: filename: "\\.pyx$|\\.pxd$|\\.pyi$" rules: # Python Keyword Color - statement: "\\b(and|as|assert|class|def|DEF|del|elif|ELIF|else|ELSE|except|exec|finally|for|from|global|if|IF|import|in|is|lambda|map|not|or|pass|print|raise|try|while|with|yield)\\b" - special: "\\b(c...
/content/code_sandbox/runtime/syntax/cython.yaml
yaml
2016-03-11T02:06:28
2024-08-16T15:15:57
micro
zyedidia/micro
24,604
399
```yaml filetype: yum detect: filename: "\\.repo$|yum.*\\.conf$" rules: - identifier: "^[[:space:]]*[^=]*=" - constant.specialChar: "^[[:space:]]*\\[.*\\]$" - statement: "\\$(releasever|arch|basearch|uuid|YUM[0-9])" - comment: "(^|[[:space:]])#([^{].*)?$" - indent-char.whitespace: "[[:space:]]...
/content/code_sandbox/runtime/syntax/yum.yaml
yaml
2016-03-11T02:06:28
2024-08-16T15:15:57
micro
zyedidia/micro
24,604
128
```yaml filetype: d detect: filename: "\\.(d(i|d)?)$" rules: # Operators and punctuation - statement: "(\\*|/|%|\\+|-|>>|<<|>>>|&|\\^(\\^)?|\\||~)?=" - statement: "\\.\\.(\\.)?|!|\\*|&|~|\\(|\\)|\\[|\\]|\\\\|/|\\+|-|%|<|>|\\?|:|;" # Octal integer literals are deprecated - error: "(0[0-7_]*)(L[...
/content/code_sandbox/runtime/syntax/d.yaml
yaml
2016-03-11T02:06:28
2024-08-16T15:15:57
micro
zyedidia/micro
24,604
1,501
```yaml filetype: elm detect: filename: "\\.elm$" rules: - statement: "\\b(as|alias|case|else|exposing|if|import|in|let|module|of|port|then|type|)\\b" - statement: "(\\=|\\:|\\->)" - type: "\\b([A-Z][A-Za-z\\d]*)\\b" - identifier: "^([a-z][A-Za-z\\d]*)\\b" - constant.string: start: "\"...
/content/code_sandbox/runtime/syntax/elm.yaml
yaml
2016-03-11T02:06:28
2024-08-16T15:15:57
micro
zyedidia/micro
24,604
270
```yaml filetype: yaml detect: filename: "\\.ya?ml$" header: "%YAML" rules: - type: "(^| )!!(binary|bool|float|int|map|null|omap|seq|set|str) " - constant: "\\b(YES|yes|Y|y|ON|on|TRUE|True|true|NO|no|N|n|OFF|off|FALSE|False|false)\\b" - statement: "(:[[:space:]]|\\[|\\]|:[[:space:]]+[|>]|^[[:spac...
/content/code_sandbox/runtime/syntax/yaml.yaml
yaml
2016-03-11T02:06:28
2024-08-16T15:15:57
micro
zyedidia/micro
24,604
300
```yaml filetype: solidity detect: filename: "\\.sol$" rules: - preproc: "\\b(contract|library|pragma)\\b" - constant.number: "\\b[-]?([0-9]+|0x[0-9a-fA-F]+)\\b" - identifier: "[a-zA-Z][_a-zA-Z0-9]*[[:space:]]*" - statement: "\\b(assembly|break|continue|do|for|function|if|else|new|return|returns|w...
/content/code_sandbox/runtime/syntax/solidity.yaml
yaml
2016-03-11T02:06:28
2024-08-16T15:15:57
micro
zyedidia/micro
24,604
544
```yaml filetype: batch detect: filename: "(\\.bat$|\\.cmd$)" rules: # Numbers - constant.number: "\\b[0-9]+\\b" # Brackets and symbols - special: "(\\{|\\}|\\(|\\)|\\;|\\]|\\[|`|\\\\|\\$|<|>|!|=|&|\\|)" # Conditionals and control flow # note (?i) means case insensitive match - type: "\\b(?i)(case|do|...
/content/code_sandbox/runtime/syntax/bat.yaml
yaml
2016-03-11T02:06:28
2024-08-16T15:15:57
micro
zyedidia/micro
24,604
1,705
```yaml filetype: msbuild detect: filename: "\\.(.*proj|props|targets|tasks)$" rules: - include: "xml" ```
/content/code_sandbox/runtime/syntax/msbuild.yaml
yaml
2016-03-11T02:06:28
2024-08-16T15:15:57
micro
zyedidia/micro
24,604
33
```yaml filetype: rust detect: filename: "\\.rs$" rules: # function definition - identifier: "fn [a-z0-9_]+" # Reserved words - statement: "\\b(abstract|alignof|as|async|await|become|box|break|const|continue|crate|do|dyn|else|enum|extern|false|final|fn|for|if|impl|in|let|loop|macro|match|mod|mov...
/content/code_sandbox/runtime/syntax/rust.yaml
yaml
2016-03-11T02:06:28
2024-08-16T15:15:57
micro
zyedidia/micro
24,604
633
```yaml filetype: crontab detect: filename: "crontab$|/tmp/crontab\\.\\w+$" header: "^#.*?/etc/crontab" rules: # The time and date fields are: # field allowed values # ----- -------------- # minute 0-59 ...
/content/code_sandbox/runtime/syntax/crontab.yaml
yaml
2016-03-11T02:06:28
2024-08-16T15:15:57
micro
zyedidia/micro
24,604
601
```yaml filetype: kotlin detect: filename: "\\.kts?$" rules: # Operators - symbol.operator: ([.:;,+*|=!?\\%]|<|>|/|-|&) # Statements Keywords - statement: \b(as|by|class|constructor|companion|const|fun|import|in|infix|interface|inline|is|out|operator|package|return|suspend|super|this|when|val|va...
/content/code_sandbox/runtime/syntax/kotlin.yaml
yaml
2016-03-11T02:06:28
2024-08-16T15:15:57
micro
zyedidia/micro
24,604
569
```yaml filetype: c detect: filename: "(\\.(c|C)$|\\.(h|H)$|\\.ii?$|\\.(def)$)" rules: - identifier: "\\b[A-Z_][0-9A-Z_]+\\b" - type: "\\b(_Atomic|_BitInt|float|double|_Decimal32|_Decimal64|_Decimal128|_Complex|complex|_Imaginary|imaginary|_Bool|bool|char|int|short|long|enum|void|struct|union|typedef|type...
/content/code_sandbox/runtime/syntax/c.yaml
yaml
2016-03-11T02:06:28
2024-08-16T15:15:57
micro
zyedidia/micro
24,604
1,098
```yaml filetype: groovy detect: filename: "(\\.(groovy|gy|gvy|gsh|gradle)$|^[Jj]enkinsfile$)" header: "^#!.*/(env +)?groovy *$" rules: # And the style guide for constants is CONSTANT_CASE - identifier: "\\b[A-Z_$]+\\b" # The style guide for JVM languages is PascalCase for classes and interfaces ...
/content/code_sandbox/runtime/syntax/groovy.yaml
yaml
2016-03-11T02:06:28
2024-08-16T15:15:57
micro
zyedidia/micro
24,604
1,371
```yaml # For more information, see path_to_url filetype: 'justfile' detect: filename: "(^\\.?[Jj]ustfile|\\.just)$" header: "^#!.*/(env +)?[bg]?just --justfile" rules: - preproc: "\\<(ifeq|ifdef|ifneq|ifndef|else|endif)\\>" - statement: "^(export|include|override)\\>" - symbol.operator: "^[^:= ]+...
/content/code_sandbox/runtime/syntax/justfile.yaml
yaml
2016-03-11T02:06:28
2024-08-16T15:15:57
micro
zyedidia/micro
24,604
528
```yaml filetype: coffeescript detect: filename: "\\.coffee$" rules: - symbol.operator: "([-+/*=<>!~%?:&|]|[.]{3})|\\b(and|or|is|isnt|not)\\b" - identifier.class: "([A-Za-z_][A-Za-z0-9_]*:[[:space:]]*(->|\\()|->)" - symbol.brackets: "[()]" - statement: "\\b(await|when|catch|continue|debugger|def...
/content/code_sandbox/runtime/syntax/coffeescript.yaml
yaml
2016-03-11T02:06:28
2024-08-16T15:15:57
micro
zyedidia/micro
24,604
719
```yaml filetype: gomod detect: filename: "go.mod" rules: # URL - type: "(^|[ \\t])+\\b([a-zA-Z0-9-]+\\.?)+(/[a-zA-Z0-9-_\\.]+)*\\b" # Keywords - special: "(^|[ \\t])+\\b(module|go)\\b" - preproc: "(^|[ \\t])+\\b(toolchain|require|exclude|replace|retract)\\b" - symbol.operator: "=>" ...
/content/code_sandbox/runtime/syntax/gomod.yaml
yaml
2016-03-11T02:06:28
2024-08-16T15:15:57
micro
zyedidia/micro
24,604
252
```yaml filetype: asciidoc detect: filename: "\\.(asc|asciidoc|adoc)$" rules: # main header - preproc: "^====+$" # h1 - statement: "^==[[:space:]].*$" - statement: "^----+$" # h2 - symbol: "^===[[:space:]].*$" - symbol: "^~~~~+$" # h4 - type: "^====[[:space:]].*$" ...
/content/code_sandbox/runtime/syntax/asciidoc.yaml
yaml
2016-03-11T02:06:28
2024-08-16T15:15:57
micro
zyedidia/micro
24,604
457
```yaml filetype: jsonnet detect: filename: "\\.jsonnet$" # Spec: path_to_url rules: # built-in objects # FIXME: $ won't match - constant: "\\b(self|\\$|super)\\b" # boolean constants - constant.bool: "\\b(null|true|false)\\b" # the standard library - identifier: "\\bstd\\.(extVar|thi...
/content/code_sandbox/runtime/syntax/jsonnet.yaml
yaml
2016-03-11T02:06:28
2024-08-16T15:15:57
micro
zyedidia/micro
24,604
965
```yaml filetype: "kvlang" detect: filename: "\\.kv$" rules: # layouts - special: "\\b[a-z].+" - identifier: "\\b(self|app|root)\\b" - type: "\\b[A-Z].+" - type: "\\b(AnchorLayout|BoxLayout|FloatLayout|RelativeLayout|GridLayout|PageLayout|StackLayout)\\b" - type: "\\b(canvas)\\b" # functions - identifier.funct...
/content/code_sandbox/runtime/syntax/kvlang.yaml
yaml
2016-03-11T02:06:28
2024-08-16T15:15:57
micro
zyedidia/micro
24,604
740
```yaml filetype: kickstart detect: filename: "\\.ks$|\\.kickstart$" rules: - special: "%[a-z]+" - statement: "^[[:space:]]*(install|cdrom|text|graphical|volgroup|logvol|reboot|timezone|lang|keyboard|authconfig|firstboot|rootpw|user|firewall|selinux|repo|part|partition|clearpart|bootloader)" - constan...
/content/code_sandbox/runtime/syntax/kickstart.yaml
yaml
2016-03-11T02:06:28
2024-08-16T15:15:57
micro
zyedidia/micro
24,604
229
```yaml filetype: hc detect: filename: "(\\.(hc|HC)$|\\.(hh|HH)$|\\.ii?$|\\.(def)$)" rules: - identifier: "\\b[A-Z_][0-9A-Z_]+\\b" - type: "\\b(F64|I8|U8|I16|U16|I32|U32|I64|U64|sizeof|enum|U0|static|extern|struct|union|class|intern|public|argc|argv|asm)\\b" - statement: "\\b(for|if|while|do|else|cas...
/content/code_sandbox/runtime/syntax/hc.yaml
yaml
2016-03-11T02:06:28
2024-08-16T15:15:57
micro
zyedidia/micro
24,604
770
```yaml filetype: python detect: filename: "\\.py(3|w)?$" header: "^#!.*/(env +)?python(3)?$" rules: # built-in objects - constant: "\\b(Ellipsis|None|self|cls|True|False)\\b" # built-in attributes - constant: "\\b(__bases__|__builtin__|__class__|__debug__|__dict__|__doc__|__file__|__members...
/content/code_sandbox/runtime/syntax/python3.yaml
yaml
2016-03-11T02:06:28
2024-08-16T15:15:57
micro
zyedidia/micro
24,604
1,005
```yaml filetype: clojure detect: filename: "\\.(clj[sc]?|edn)$" rules: # Constants - constant.bool: "\\b(true|false)\\b" - constant.macro: "\\b(nil)\\b" # Valid numbers - constant.number: "[\\-]?[0-9]+?\\b" - constant.number: "0x[0-9][A-Fa-f]+?\\b" - constant.number: "[\\-]?(3[0-6]...
/content/code_sandbox/runtime/syntax/clojure.yaml
yaml
2016-03-11T02:06:28
2024-08-16T15:15:57
micro
zyedidia/micro
24,604
351
```yaml # godoc # example: go doc -all | micro filetype: godoc detect: filename: "\\.godoc$" header: package.*import rules: - preproc: "^[^ ].*" - comment: start: "//" end: "$" rules: - todo: "(TODO|XXX|FIXME):?" ```
/content/code_sandbox/runtime/syntax/godoc.yaml
yaml
2016-03-11T02:06:28
2024-08-16T15:15:57
micro
zyedidia/micro
24,604
81
```yaml filetype: rst detect: filename: "\\.rest$|\\.rst$" rules: - statement: "\\*\\*[^*]+\\*\\*" - preproc: "::" - constant.string: "`[^`]+`_{1,2}" - constant.string: "``[^`]+``" - identifier: "^\\.\\. .*$" - identifier: "^__ .*$" - type: "^###+$" - type: "^\\*\\*\\*+$" - spe...
/content/code_sandbox/runtime/syntax/reST.yaml
yaml
2016-03-11T02:06:28
2024-08-16T15:15:57
micro
zyedidia/micro
24,604
152
```yaml filetype: graphql detect: filename: "\\.(gql|graphql)$" rules: - type: "\\b(?:(query|mutation|subscription|type|input|scalar|fragment|schema|union|on|extends?))\\b" # scalar types - statement: "\\b(ID|Int|Float|Boolean|String|Datetime|Null)\\b" # introspection types - statement: "(__...
/content/code_sandbox/runtime/syntax/graphql.yaml
yaml
2016-03-11T02:06:28
2024-08-16T15:15:57
micro
zyedidia/micro
24,604
350
```yaml filetype: raku detect: filename: "(\\.p6$|\\.pl6$|\\.pm6$|\\.raku$|\\.rakumod$|\\.rakudoc$)" rules: - type: "\\b(accept|alarm|atan2|bin(d|mode)|c(aller|h(dir|mod|op|own|root)|lose(dir)?|onnect|os|rypt)|d(bm(close|open)|efined|elete|ie|o|ump)|e(ach|of|val|x(ec|ists|it|p))|f(cntl|ileno|lock|ork)|get(c|l...
/content/code_sandbox/runtime/syntax/raku.yaml
yaml
2016-03-11T02:06:28
2024-08-16T15:15:57
micro
zyedidia/micro
24,604
779
```yaml filetype: glsl detect: filename: "\\.(frag|vert|fp|vp|glsl)$" rules: - identifier: "[A-Za-z_][A-Za-z0-9_]*[[:space:]]*[()]" - type: "\\b(void|bool|bvec2|bvec3|bvec4|int|ivec2|ivec3|ivec4|float|vec2|vec3|vec4|mat2|mat3|mat4|struct|sampler1D|sampler2D|sampler3D|samplerCUBE|sampler1DShadow|sampler2DS...
/content/code_sandbox/runtime/syntax/glsl.yaml
yaml
2016-03-11T02:06:28
2024-08-16T15:15:57
micro
zyedidia/micro
24,604
348
```yaml filetype: dot detect: filename: "\\.(dot|gv)$" rules: - type: "\\b(digraph|edge|graph|node|subgraph)\\b" - statement: "\\b(arrow(head|size|tail)|(bg|fill|font)?color|center|constraint|decorateP|dir|distortion|font(name|size)|head(clip|label)|height|label(angle|distance|font(color|name|size))?|la...
/content/code_sandbox/runtime/syntax/dot.yaml
yaml
2016-03-11T02:06:28
2024-08-16T15:15:57
micro
zyedidia/micro
24,604
288
```yaml filetype: erb detect: filename: "\\.erb$|\\.rhtml$" rules: - error: "<[^!].*?>" - symbol.tag: "(?i)<[/]?(a(bbr|cronym|ddress|pplet|rea|rticle|side|udio)?|b(ase(font)?|d(i|o)|ig|lockquote|r)?|ca(nvas|ption)|center|cite|co(de|l|lgroup)|d(ata(list)?|d|el|etails|fn|ialog|ir|l|t)|em(bed)?|fieldset|fig(...
/content/code_sandbox/runtime/syntax/erb.yaml
yaml
2016-03-11T02:06:28
2024-08-16T15:15:57
micro
zyedidia/micro
24,604
1,018
```yaml filetype: cake detect: filename: "\\.cake$" rules: - include: "csharp" - preproc: "^[[:space:]]*#(addin|break|l(oad)?|module|r(eference)?|tool)" ```
/content/code_sandbox/runtime/syntax/cake.yaml
yaml
2016-03-11T02:06:28
2024-08-16T15:15:57
micro
zyedidia/micro
24,604
56
```yaml filetype: proto detect: filename: "(\\.(proto)$$)" rules: - identifier: "\\b[A-Z_][0-9A-Z_]+\\b" - type: "\\b(int(8|16|32|64))|string|bytes|repeated|bool|required|map|optional|oneof|union\\b" - statement: "\\b(import|service|enum|syntax|package|option|message|rpc|returns|extensions|to)\\b" ...
/content/code_sandbox/runtime/syntax/proto.yaml
yaml
2016-03-11T02:06:28
2024-08-16T15:15:57
micro
zyedidia/micro
24,604
333
```yaml filetype: zsh detect: filename: "(\\.zsh$|\\.?(zshenv|zprofile|zshrc|zlogin|zlogout)$)" header: "^#!.*/(env +)?zsh( |$)" rules: ## Numbers - constant.number: "\\b[0-9]+\\b" ## Conditionals and control flow - statement: "\\b(always|break|bye|case|continue|disown|do|done|elif|else|esa...
/content/code_sandbox/runtime/syntax/zsh.yaml
yaml
2016-03-11T02:06:28
2024-08-16T15:15:57
micro
zyedidia/micro
24,604
810
```yaml filetype: javascript detect: filename: "(\\.js$|\\.es[5678]?$|\\.mjs$)" header: "^#!.*/(env +)?node( |$)" rules: - constant.number: "\\b[-+]?([1-9][0-9]*|0[0-7]*|0x[0-9a-fA-F]+)([uU][lL]?|[lL][uU]?)?\\b" - constant.number: "\\b[-+]?([0-9]+\\.[0-9]*|[0-9]*\\.[0-9]+)([EePp][+-]?[0-9]+)?[fFlL]?" ...
/content/code_sandbox/runtime/syntax/javascript.yaml
yaml
2016-03-11T02:06:28
2024-08-16T15:15:57
micro
zyedidia/micro
24,604
958
```yaml filetype: php detect: filename: "\\.php[2345s~]?$" rules: - symbol.operator: "<|>" - error: "<[^!].*?>" - symbol.tag: "(?i)<[/]?(a(bbr|cronym|ddress|pplet|rea|rticle|side|udio)?|b(ase(font)?|d(i|o)|ig|lockquote|r)?|ca(nvas|ption)|center|cite|co(de|l|lgroup)|d(ata(list)?|d|el|etails|fn|ialog|ir...
/content/code_sandbox/runtime/syntax/php.yaml
yaml
2016-03-11T02:06:28
2024-08-16T15:15:57
micro
zyedidia/micro
24,604
1,133
```yaml filetype: sage detect: filename: "\\.sage$" header: "^#!.*/(env +)?sage( |$)" rules: # built-in objects - constant: "\\b(None|self|True|False)\\b" # built-in attributes - constant: "\\b(__bases__|__builtin__|__class__|__debug__|__dict__|__doc__|__file__|__members__|__methods__|__nam...
/content/code_sandbox/runtime/syntax/sage.yaml
yaml
2016-03-11T02:06:28
2024-08-16T15:15:57
micro
zyedidia/micro
24,604
878
```yaml filetype: perl detect: filename: "\\.p[lmp]$" header: "^#!.*/(env +)?perl( |$)" rules: - type: "\\b(accept|alarm|atan2|bin(d|mode)|c(aller|homp|h(dir|mod|op|own|root)|lose(dir)?|onnect|os|rypt)|d(bm(close|open)|efined|elete|ie|o|ump)|e(ach|of|val|x(ec|ists|it|p))|f(cntl|ileno|lock|ork))\\b|\\b(get...
/content/code_sandbox/runtime/syntax/perl.yaml
yaml
2016-03-11T02:06:28
2024-08-16T15:15:57
micro
zyedidia/micro
24,604
895
```yaml filetype: xresources detect: filename: "X(defaults|resources)$" rules: - special: "^[[:alnum:]]+\\*" - identifier.var: "\\*[[:alnum:]]+\\:" - constant.number: "\\b[0-9]+\\b" - symbol.operator: "[*:=]" - constant.bool: "\\b(true|false)\\b" - comment: "(^|[[:space:]])!([^{].*)?$" ...
/content/code_sandbox/runtime/syntax/xresources.yaml
yaml
2016-03-11T02:06:28
2024-08-16T15:15:57
micro
zyedidia/micro
24,604
134
```yaml filetype: scala detect: filename: "\\.sc(ala)?$|\\.sbt$" rules: - type: "\\b(boolean|byte|char|double|float|int|long|new|short|this|transient|void)\\b" - statement: "\\b(match|val|var|break|case|catch|continue|default|do|else|finally|for|if|return|switch|throw|try|while)\\b" - statement: "\\b(...
/content/code_sandbox/runtime/syntax/scala.yaml
yaml
2016-03-11T02:06:28
2024-08-16T15:15:57
micro
zyedidia/micro
24,604
303
```yaml filetype: haml detect: filename: "\\.haml$" rules: - symbol: "-|=" - default: "->|=>" - constant: "([ ]|^)%[0-9A-Za-z_]+>" - special: ":[0-9A-Za-z_]+>" - type: "\\.[A-Za-z_]+>" - constant.string: "\"([^\"]|(\\\\\"))*\"|%[QW]?\\{[^}]*\\}|%[QW]?\\([^)]*\\)|%[QW]?<[^>]*>|%[QW]?\\$[^$...
/content/code_sandbox/runtime/syntax/haml.yaml
yaml
2016-03-11T02:06:28
2024-08-16T15:15:57
micro
zyedidia/micro
24,604
283
```yaml filetype: gemini detect: filename: "\\.(gmi|gemini)$" rules: # link lines - constant: "^=>[[:space:]].*" # preformatted text lines - special: start: "^```" end: "^```" rules: [] # heading lines - special: "^#{1,3}.*" # unordered list items -...
/content/code_sandbox/runtime/syntax/gemini.yaml
yaml
2016-03-11T02:06:28
2024-08-16T15:15:57
micro
zyedidia/micro
24,604
118
```yaml filetype: hare detect: filename: "\\.ha$" rules: - identifier: "\\b[A-Z_][0-9A-Z_]+\\b" - type: "\\b(bool|char|str|rune|void)\\b" - type: "\\b(f32|f64|uint|int|u8|u16|u32|u64|i8|i16|i32|i64|uintptr)\\b" - statement: "\\b(case|else|for|if|switch)\\b" - statement: "\\b(continue|break|r...
/content/code_sandbox/runtime/syntax/hare.yaml
yaml
2016-03-11T02:06:28
2024-08-16T15:15:57
micro
zyedidia/micro
24,604
744
```yaml filetype: ATS detect: filename: "\\.(d|h|s)ats$" rules: - default: \b[[:alnum:]]+[^0-9A-Za-z] # Operators - symbol.operator: "[.:;+`|~<>?='\\&]|/|%|-|,|!|\\*|@|\\#" - symbol.operator: \^ # Types, abstract types and some predefined sorts - type: \b(addr|age?z|bool|char|cls|schar|u...
/content/code_sandbox/runtime/syntax/ats.yaml
yaml
2016-03-11T02:06:28
2024-08-16T15:15:57
micro
zyedidia/micro
24,604
1,542
```yaml # PowerShell syntax highlighting file for micro - path_to_url # PowerShell syntax taken from: path_to_url filetype: powershell detect: filename: "\\.ps(1|m1|d1)$" rules: # - comment.block: # Block Comment # - comment.doc: # Doc Comment # - comment.line: # Line...
/content/code_sandbox/runtime/syntax/PowerShell.yaml
yaml
2016-03-11T02:06:28
2024-08-16T15:15:57
micro
zyedidia/micro
24,604
1,473
```yaml filetype: dart detect: filename: "\\.dart$" rules: - constant.number: "\\b[-+]?([1-9][0-9]*|0[0-7]*|0x[0-9a-fA-F]+)([uU][lL]?|[lL][uU]?)?\\b" - constant.number: "\\b[-+]?([0-9]+\\.[0-9]*|[0-9]*\\.[0-9]+)([EePp][+-]?[0-9]+)?[fFlL]?" - constant.number: "\\b[-+]?([0-9]+[EePp][+-]?[0-9]+)[fFlL]?" ...
/content/code_sandbox/runtime/syntax/dart.yaml
yaml
2016-03-11T02:06:28
2024-08-16T15:15:57
micro
zyedidia/micro
24,604
536
```yaml filetype: golo detect: filename: "\\.golo$" rules: - type: "\\b(function|fun|)\\b" - type: "\\b(struct|DynamicObject|union|AdapterFabric|Adapter|DynamicVariable|Observable)\\b" - type: "\\b(list|set|array|vector|tuple|map)\\b" - type: "\\b(Ok|Error|Empty|None|Some|Option|Result|Result.ok|R...
/content/code_sandbox/runtime/syntax/golo.yaml
yaml
2016-03-11T02:06:28
2024-08-16T15:15:57
micro
zyedidia/micro
24,604
1,289
```yaml filetype: crystal detect: filename: "\\.cr$" rules: # Asciibetical list of reserved words - statement: "\\b(abstract|alias|as|asm|begin|break|case|class|def|do|else|elsif|end|ensure|enum|extend|for|fun|if|in|include|instance_sizeof|lib|loop|macro|module|next|of|out|pointerof|private|protected|rais...
/content/code_sandbox/runtime/syntax/crystal.yaml
yaml
2016-03-11T02:06:28
2024-08-16T15:15:57
micro
zyedidia/micro
24,604
645
```yaml filetype: odin detect: filename: "\\.odin$" rules: # Conditionals and control flow - special: "\\b(asm|auto_cast|break|case|cast|context|continue|do|dynamic|fallthrough|return|transmute|using|where)\\b" - statement: "\\b(else|for|if|switch|in|not_in|or_else|or_return|when)\\b" - preproc: "...
/content/code_sandbox/runtime/syntax/odin.yaml
yaml
2016-03-11T02:06:28
2024-08-16T15:15:57
micro
zyedidia/micro
24,604
833
```yaml filetype: fsharp detect: filename: "\\.fs?$" rules: - identifier: "\\b[A-Z][0-9a-z_]{2,}\\b" #declarations - statement: "\\b(let|val|method|in|and|rec|private|virtual|constraint)\\b" #structure items - type: "\\b(type|open|class|module|exception|external)\\b" #patterns - ...
/content/code_sandbox/runtime/syntax/fsharp.yaml
yaml
2016-03-11T02:06:28
2024-08-16T15:15:57
micro
zyedidia/micro
24,604
573
```yaml filetype: r detect: filename: "\\.(r|R)$" rules: - statement: "\\b(library|require|break|else|for|function|if|ifelse|in|next|names|switch|repeat|print|try|tryCatch|isTRUE|return|while)\\b" - constant: "\\b(T|TRUE|F|FALSE|NULL|Inf|NaN|NA|NA_integer_|NA_real_|NA_complex_|NA_character_)\\b" - co...
/content/code_sandbox/runtime/syntax/r.yaml
yaml
2016-03-11T02:06:28
2024-08-16T15:15:57
micro
zyedidia/micro
24,604
263
```yaml filetype: cmake detect: filename: "(CMakeLists\\.txt|\\.cmake)$" rules: - identifier.var: "^[[:space:]]*[A-Z0-9_]+" - preproc: "^[[:space:]]*(include|include_directories|include_external_msproject)\\b" - statement: "^[[:space:]]*\\b((else|end)?if|else|(end)?while|(end)?foreach|break)\\b" ...
/content/code_sandbox/runtime/syntax/cmake.yaml
yaml
2016-03-11T02:06:28
2024-08-16T15:15:57
micro
zyedidia/micro
24,604
377
```yaml filetype: erlang detect: filename: "\\.erl$" rules: - identifier: "\\b[A-Z][0-9a-z_]*\\b" # See: path_to_url - constant.number: "\\b[0-9]+(\\.[0-9]+)?(e-?[0-9]+)?\\b" - constant.number: "\\b[0-9]{1,2}\\#[a-zA-Z0-9]+\\b" - constant.bool: "\\b(true|false)\\b" - constant.number: "\\$\...
/content/code_sandbox/runtime/syntax/erlang.yaml
yaml
2016-03-11T02:06:28
2024-08-16T15:15:57
micro
zyedidia/micro
24,604
879
```yaml filetype: markdown detect: filename: "\\.(livemd|md|mkd|mkdn|markdown)$" rules: # Tables (Github extension) - type: ".*[ :]\\|[ :].*" # quotes - statement: "^>.*" # Emphasis - type: "(^|[[:space:]])(_[^ ][^_]*_|\\*[^ ][^*]*\\*)" # Strong emphasis - type: "(^|[[:sp...
/content/code_sandbox/runtime/syntax/markdown.yaml
yaml
2016-03-11T02:06:28
2024-08-16T15:15:57
micro
zyedidia/micro
24,604
400
```yaml filetype: pc detect: filename: "\\.pc$" rules: - preproc: "^(Name|Description|URL|Version|Conflicts|Cflags):" - preproc: "^(Requires|Libs)(\\.private)?:" - symbol.operator: "=" - identifier.var: "\\$\\{[A-Za-z_][A-Za-z0-9_]*\\}" - indent-char.whitespace: "[[:space:]]+$" - indent-ch...
/content/code_sandbox/runtime/syntax/pkg-config.yaml
yaml
2016-03-11T02:06:28
2024-08-16T15:15:57
micro
zyedidia/micro
24,604
117
```yaml filetype: peg detect: filename: "\\.l?peg$" rules: - identifier: "^[[:space:]]*[A-Za-z][A-Za-z0-9_]*[[:space:]]*<-" - constant.number: "\\^[+-]?[0-9]+" - symbol.operator: "[-+*?^/!&]|->|<-|=>" - identifier.var: "%[A-Za-z][A-Za-z0-9_]*" - special: "\\[[^]]*\\]" - constant.string: "\...
/content/code_sandbox/runtime/syntax/peg.yaml
yaml
2016-03-11T02:06:28
2024-08-16T15:15:57
micro
zyedidia/micro
24,604
194
```yaml filetype: git-config detect: filename: "git(config|modules)$|\\.git/config$" rules: - constant: "\\<(true|false)\\>" - type.keyword: "^[[:space:]]*[^=]*=" - constant: "^[[:space:]]*\\[.*\\]$" - constant: "\"(\\\\.|[^\"])*\"|'(\\\\.|[^'])*'" - comment: start: "#" end: "$...
/content/code_sandbox/runtime/syntax/git-config.yaml
yaml
2016-03-11T02:06:28
2024-08-16T15:15:57
micro
zyedidia/micro
24,604
111
```yaml filetype: nanorc detect: filename: "\\.?nanorc$" rules: - default: "(?i)^[[:space:]]*((un)?set|include|syntax|i?color).*$" - type: "(?i)^[[:space:]]*(set|unset)[[:space:]]+(autoindent|backup|backupdir|backwards|boldtext|brackets|casesensitive|const|cut|fill|historylog|matchbrackets|morespace|mouse...
/content/code_sandbox/runtime/syntax/nanorc.yaml
yaml
2016-03-11T02:06:28
2024-08-16T15:15:57
micro
zyedidia/micro
24,604
400
```yaml filetype: verilog detect: filename: "\\.(v|vh|sv|svh)$" rules: - preproc: "\\b(module|package|program|endmodule|endpackage|endprogram)\\b" - type.keyword: "\\b(task|interface|class|endtask|endinterface|endclass)\\b" # builtin functions like $display - special: "\\$[0-9A-Za-z_]+" # Ver...
/content/code_sandbox/runtime/syntax/verilog.yaml
yaml
2016-03-11T02:06:28
2024-08-16T15:15:57
micro
zyedidia/micro
24,604
1,001
```yaml filetype: lilypond detect: filename: "\\.ly$|\\.ily$|\\.lly$" rules: - constant.number: "\\d+" - identifier: "\\b(staff|spacing|signature|routine|notes|handler|corrected|beams|arpeggios|Volta_engraver|Voice|Vertical_align_engraver|Vaticana_ligature_engraver|VaticanaVoice|VaticanaStaff|Tweak_engrav...
/content/code_sandbox/runtime/syntax/lilypond.yaml
yaml
2016-03-11T02:06:28
2024-08-16T15:15:57
micro
zyedidia/micro
24,604
1,258
```yaml # References # path_to_url # path_to_url # # TODO # include only needed operators # ... highlighting # built-in function highlighting? # highlight eps/pi/e etc. as functions when followed by () # what are skip and error fields in strings? # multiline comments not working filetype: octave detect: filename:...
/content/code_sandbox/runtime/syntax/octave.yaml
yaml
2016-03-11T02:06:28
2024-08-16T15:15:57
micro
zyedidia/micro
24,604
700
```yaml filetype: keymap detect: filename: "\\.(k|key)?map$|Xmodmap$" rules: - statement: "\\b(add|clear|compose|keycode|keymaps|keysym|remove|string)\\b" - statement: "\\b(control|alt|shift)\\b" - constant.number: "\\b[0-9]+\\b" - special: "=" - constant.string: start: "\"" en...
/content/code_sandbox/runtime/syntax/keymap.yaml
yaml
2016-03-11T02:06:28
2024-08-16T15:15:57
micro
zyedidia/micro
24,604
175
```yaml filetype: sql detect: filename: "\\.sql$|sqliterc$" rules: - statement: "(?i)\\b(ALL|ASC|AS|ALTER|AND|ADD|AUTO_INCREMENT)\\b" - statement: "(?i)\\b(BETWEEN|BINARY|BOTH|BY|BOOLEAN)\\b" - statement: "(?i)\\b(CHANGE|CHECK|COLUMNS|COLUMN|CROSS|CREATE)\\b" - statement: "(?i)\\b(DATABASES|DATABA...
/content/code_sandbox/runtime/syntax/sql.yaml
yaml
2016-03-11T02:06:28
2024-08-16T15:15:57
micro
zyedidia/micro
24,604
883
```yaml filetype: tcl detect: filename: "\\.tcl$" header: "^#!.*/(env +)?tclsh( |$)" rules: - statement: "\\b(after|append|array|auto_execok|auto_import|auto_load|auto_load_index|auto_qualify|binary|break|case|catch|cd|clock|close|concat|continue|else|elseif|encoding|eof|error|eval|exec|exit|expr|fblocked...
/content/code_sandbox/runtime/syntax/tcl.yaml
yaml
2016-03-11T02:06:28
2024-08-16T15:15:57
micro
zyedidia/micro
24,604
727
```yaml filetype: privoxy-action detect: filename: "\\.action$" rules: - constant.bool.false: "[{[:space:]]\\-block([[:space:]{}]|$)" - constant.bool.true: "[{[:space:]]\\+block([[:space:]{}]|$)" - constant.bool.false: "-(add-header|change-x-forwarded-for|client-header-filter|client-header-tagger|cont...
/content/code_sandbox/runtime/syntax/privoxy-action.yaml
yaml
2016-03-11T02:06:28
2024-08-16T15:15:57
micro
zyedidia/micro
24,604
436
```yaml filetype: toml detect: filename: "\\.toml" rules: # Punctuation - symbol: '[=,\.]' - symbol.brackets: '[{\[\]}]' # Strings - constant.string: start: '"""' end: '\"{3,5}' skip: '\\.' rules: - constant.specialChar: '\\u[[:xdigit:]]{4}' ...
/content/code_sandbox/runtime/syntax/toml.yaml
yaml
2016-03-11T02:06:28
2024-08-16T15:15:57
micro
zyedidia/micro
24,604
596
```yaml filetype: unknown detect: filename: "" rules: # Mails - special: "[[:alnum:].%_+-]+@[[:alnum:].-]+" # URLs - identifier: "(https?|ftp|ssh)://\\S*[^])>\\s,.]" ```
/content/code_sandbox/runtime/syntax/default.yaml
yaml
2016-03-11T02:06:28
2024-08-16T15:15:57
micro
zyedidia/micro
24,604
65
```lua VERSION = "1.0.0" local micro = import("micro") local buffer = import("micro/buffer") local config = import("micro/config") local humanize = import("humanize") function init() micro.SetStatusInfoFn("status.branch") micro.SetStatusInfoFn("status.hash") micro.SetStatusInfoFn("status.paste") micro...
/content/code_sandbox/runtime/plugins/status/status.lua
lua
2016-03-11T02:06:28
2024-08-16T15:15:57
micro
zyedidia/micro
24,604
387
```lua VERSION = "1.0.0" local os = import("os") local filepath = import("path/filepath") local shell = import("micro/shell") function onBufferOpen(buf) if buf.Settings["diffgutter"] and (not buf.Type.Scratch) and (buf.Path ~= "") then -- check that file exists local _, err = os.Stat(buf.AbsPath) if err == nil...
/content/code_sandbox/runtime/plugins/diff/diff.lua
lua
2016-03-11T02:06:28
2024-08-16T15:15:57
micro
zyedidia/micro
24,604
166
```lua VERSION = "1.0.0" function onBufferOpen(b) local ft = b:FileType() if ft == "go" or ft == "makefile" then b:SetOption("tabstospaces", "off") elseif ft == "fish" or ft == "python" or ft == "python2" or ft == "python3" or ft == "yaml" or ...
/content/code_sandbox/runtime/plugins/ftoptions/ftoptions.lua
lua
2016-03-11T02:06:28
2024-08-16T15:15:57
micro
zyedidia/micro
24,604
124
```yaml filetype: twig detect: filename: "\\.twig$" rules: - include: "html" - symbol.tag: start: "\\{\\{[[:space:]]" end: "[[:space:]]\\}\\}" rules: - identifier: "\\b(abs|batch|capitalize|convert|encoding|date(_modify)?|default|escape|first|format|join|json_encode|key...
/content/code_sandbox/runtime/syntax/twig.yaml
yaml
2016-03-11T02:06:28
2024-08-16T15:15:57
micro
zyedidia/micro
24,604
718
```lua VERSION = "1.0.0" local util = import("micro/util") local config = import("micro/config") local buffer = import("micro/buffer") local ft = {} ft["apacheconf"] = "# %s" ft["batch"] = ":: %s" ft["c"] = "// %s" ft["c++"] = "// %s" ft["cmake"] = "# %s" ft["conf"] = "# %s" ft["crystal"] = "# %s" ft["css"] = "/* %s...
/content/code_sandbox/runtime/plugins/comment/comment.lua
lua
2016-03-11T02:06:28
2024-08-16T15:15:57
micro
zyedidia/micro
24,604
1,995
```lua VERSION = "1.0.0" local config = import("micro/config") function startswith(str, start) return string.sub(str,1,string.len(start))==start end function endswith(str, endStr) return endStr=='' or string.sub(str,-string.len(endStr))==endStr end function split(string, sep) local sep, fields = sep or ":...
/content/code_sandbox/runtime/plugins/literate/literate.lua
lua
2016-03-11T02:06:28
2024-08-16T15:15:57
micro
zyedidia/micro
24,604
575
```lua VERSION = "1.0.0" local micro = import("micro") local runtime = import("runtime") local filepath = import("path/filepath") local shell = import("micro/shell") local buffer = import("micro/buffer") local config = import("micro/config") local util = import("micro/util") local os = import("os") local linters = {}...
/content/code_sandbox/runtime/plugins/linter/linter.lua
lua
2016-03-11T02:06:28
2024-08-16T15:15:57
micro
zyedidia/micro
24,604
2,407
```xml <?xml version="1.0" encoding="UTF-8"?> <component type="desktop-application"> <id>io.github.zyedidia.micro</id> <launchable type="desktop-id">micro.desktop</launchable> <name>Micro Text Editor</name> <summary>A modern and intuitive terminal-based text editor</summary> <description> <p> micro is a termi...
/content/code_sandbox/data/io.github.zyedidia.micro.metainfo.xml
xml
2016-03-11T02:06:28
2024-08-16T15:15:57
micro
zyedidia/micro
24,604
546
```lua VERSION = "1.0.0" local uutil = import("micro/util") local utf8 = import("utf8") local autoclosePairs = {"\"\"", "''", "``", "()", "{}", "[]"} local autoNewlinePairs = {"()", "{}", "[]"} function charAt(str, i) -- lua indexing is one off from go return uutil.RuneAt(str, i-1) end function onRune(bp, r)...
/content/code_sandbox/runtime/plugins/autoclose/autoclose.lua
lua
2016-03-11T02:06:28
2024-08-16T15:15:57
micro
zyedidia/micro
24,604
702
```shell #!/bin/sh set -e VERSION="$1" if [ -z "$VERSION" ]; then VERSION="$(go run tools/build-version.go)" fi mkdir -p binaries mkdir -p micro-$VERSION cp LICENSE micro-$VERSION cp README.md micro-$VERSION cp LICENSE-THIRD-PARTY micro-$VERSION cp assets/packaging/micro.1 micro-$VERSION cp assets/packaging/micro....
/content/code_sandbox/tools/cross-compile.sh
shell
2016-03-11T02:06:28
2024-08-16T15:15:57
micro
zyedidia/micro
24,604
760
```shell cd .. mkdir -p binaries mkdir -p micro-$1 cp LICENSE micro-$1 cp README.md micro-$1 cp LICENSE-THIRD-PARTY micro-$1 HASH="$(git rev-parse --short HEAD)" VERSION="$(go run tools/build-version.go)" DATE="$(go run tools/build-date.go)" ADDITIONAL_GO_LINKER_FLAGS="$(go run tools/info-plist.go $VERSION)" echo "...
/content/code_sandbox/tools/compile-linux.sh
shell
2016-03-11T02:06:28
2024-08-16T15:15:57
micro
zyedidia/micro
24,604
430
```go //+build ignore package main import ( "fmt" "io/ioutil" "net/http" "os/exec" "strings" "github.com/zyedidia/json5" ) func main() { resp, err := http.Get("path_to_url") if err != nil { fmt.Println(err.Error()) return } defer resp.Body.Close() body, err := ioutil.ReadAll(resp.Body) var data int...
/content/code_sandbox/tools/remove-nightly-assets.go
go
2016-03-11T02:06:28
2024-08-16T15:15:57
micro
zyedidia/micro
24,604
217
```shell commitID=$(git rev-parse --short HEAD) echo "Moving tag" hub push origin :refs/tags/nightly git tag -f nightly $commitID hub push --tags MESSAGE=$'Nightly build\n\nAutogenerated nightly build of micro' echo "Creating new release" hub release create nightly \ --prerelease \ --draft=false \ --messa...
/content/code_sandbox/tools/update-nightly-tag.sh
shell
2016-03-11T02:06:28
2024-08-16T15:15:57
micro
zyedidia/micro
24,604
83
```shell # This script updates the nightly release on Github for micro # Must be run from inside the micro git repository commitID=$(git rev-parse --short HEAD) go run remove-nightly-assets.go echo "Cross compiling binaries" ./cross-compile.sh $1 mv ../binaries . MESSAGE=$'Nightly build\n\nAutogenerated nightly bui...
/content/code_sandbox/tools/nightly-release.sh
shell
2016-03-11T02:06:28
2024-08-16T15:15:57
micro
zyedidia/micro
24,604
391
```shell # This script creates releases on Github for micro # You must have the correct Github access token to run this script # $1 is the title, $2 is the description commitID=$(git rev-parse HEAD) tag="v$1" echo "Creating tag" git tag $tag $commitID hub push --tags NL=$'\n' echo "Cross compiling binaries" ./cros...
/content/code_sandbox/tools/release.sh
shell
2016-03-11T02:06:28
2024-08-16T15:15:57
micro
zyedidia/micro
24,604
382
```shell cd ../.. tar czf "$1".tar.gz micro zip -rq "$1".zip micro mv "$1".tar.gz micro mv "$1".zip micro ```
/content/code_sandbox/tools/vendor-src.sh
shell
2016-03-11T02:06:28
2024-08-16T15:15:57
micro
zyedidia/micro
24,604
38
```go //+build ignore package main import ( "fmt" "log" "os/exec" "strings" "github.com/blang/semver" ) func getTag(match ...string) (string, *semver.PRVersion) { args := append([]string{ "describe", "--tags", }, match...) if tag, err := exec.Command("git", args...).Output(); err != nil { return "", nil...
/content/code_sandbox/tools/build-version.go
go
2016-03-11T02:06:28
2024-08-16T15:15:57
micro
zyedidia/micro
24,604
614