github-linguist 7.14.0 → 7.17.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/bin/github-linguist +115 -71
- data/grammars/annotation.liquidhaskell.haskell.json +1 -1
- data/grammars/etc.json +1 -1
- data/grammars/go.mod.json +1 -0
- data/grammars/go.sum.json +1 -0
- data/grammars/hint.haskell.json +1 -1
- data/grammars/hint.message.haskell.json +1 -1
- data/grammars/hint.type.haskell.json +1 -1
- data/grammars/markdown.bicep.codeblock.json +1 -0
- data/grammars/markdown.codeblock.proto.json +1 -0
- data/grammars/markdown.mcfunction.codeblock.json +1 -0
- data/grammars/source.abap.json +1 -1
- data/grammars/source.aidl.json +1 -0
- data/grammars/source.al.json +1 -1
- data/grammars/source.angelscript.json +1 -1
- data/grammars/source.avro.json +1 -1
- data/grammars/source.ballerina.json +1 -1
- data/grammars/source.batchfile.json +1 -1
- data/grammars/source.bc.json +1 -0
- data/grammars/source.bicep.json +1 -1
- data/grammars/source.boo.json +1 -1
- data/grammars/source.bp.json +1 -0
- data/grammars/source.cil.json +1 -0
- data/grammars/source.cirru.json +1 -1
- data/grammars/source.cs.json +1 -1
- data/grammars/source.csound.json +1 -1
- data/grammars/source.css.json +1 -1
- data/grammars/source.cue.json +1 -0
- data/grammars/source.cuesheet.json +1 -0
- data/grammars/source.dart.json +1 -1
- data/grammars/source.dc.json +1 -0
- data/grammars/source.ditroff.json +1 -1
- data/grammars/source.dotenv.json +1 -0
- data/grammars/source.ebnf.json +1 -1
- data/grammars/source.ecl.json +1 -0
- data/grammars/source.ed.json +1 -0
- data/grammars/source.fnl.json +1 -0
- data/grammars/source.fontforge.json +1 -1
- data/grammars/source.fstar.json +1 -1
- data/grammars/source.ftl.json +1 -0
- data/grammars/source.gcode.json +1 -1
- data/grammars/source.gdscript.json +1 -1
- data/grammars/source.hack.json +1 -1
- data/grammars/source.haskell.json +1 -1
- data/grammars/source.hlcode.json +1 -0
- data/grammars/source.hsig.json +1 -1
- data/grammars/source.hx.json +1 -1
- data/grammars/source.hy.json +1 -1
- data/grammars/source.jest.snap.json +1 -0
- data/grammars/source.jq.json +1 -1
- data/grammars/source.json.json +1 -1
- data/grammars/source.julia.json +1 -1
- data/grammars/source.kakscript.json +1 -0
- data/grammars/source.keyvalues.json +1 -0
- data/grammars/source.kotlin.json +1 -1
- data/grammars/source.lean.json +1 -1
- data/grammars/source.m2.json +1 -1
- data/grammars/source.matlab.json +1 -1
- data/grammars/source.mcfunction.json +1 -1
- data/grammars/source.odin.json +1 -1
- data/grammars/source.opentype.json +1 -1
- data/grammars/source.pegjs.json +1 -0
- data/grammars/source.postscript.json +1 -1
- data/grammars/source.powershell.json +1 -1
- data/grammars/source.proto.json +1 -0
- data/grammars/source.purescript.json +1 -1
- data/grammars/source.regexp.json +1 -1
- data/grammars/source.regexp.oniguruma.json +1 -0
- data/grammars/source.rego.json +1 -1
- data/grammars/source.renpy.json +1 -1
- data/grammars/source.rescript.json +1 -1
- data/grammars/source.sed.json +1 -1
- data/grammars/source.sepolicy.json +1 -0
- data/grammars/source.shellcheckrc.json +1 -0
- data/grammars/source.sqf.json +1 -1
- data/grammars/source.swift.json +1 -1
- data/grammars/source.sy.json +1 -1
- data/grammars/source.tm-properties.json +1 -0
- data/grammars/source.ts.json +1 -1
- data/grammars/source.tsx.json +1 -1
- data/grammars/source.v.json +1 -1
- data/grammars/source.viml.json +1 -1
- data/grammars/source.webassembly.json +1 -1
- data/grammars/source.ws.json +1 -0
- data/grammars/source.wsd.json +1 -1
- data/grammars/source.xojo.json +1 -1
- data/grammars/source.yara.json +1 -1
- data/grammars/source.yasnippet.json +1 -1
- data/grammars/source.zig.json +1 -1
- data/grammars/text.html.astro.json +1 -0
- data/grammars/text.html.markdown.astro.json +1 -0
- data/grammars/text.info.json +1 -0
- data/grammars/text.lesshst.json +1 -0
- data/grammars/text.marko.json +1 -1
- data/grammars/text.sfd.json +1 -1
- data/grammars/text.tex.latex.haskell.json +1 -1
- data/grammars/text.xml.svg.json +1 -1
- data/grammars/textmate.format-string.json +1 -0
- data/grammars/version +1 -1
- data/lib/linguist/VERSION +1 -1
- data/lib/linguist/documentation.yml +1 -0
- data/lib/linguist/generated.rb +13 -0
- data/lib/linguist/heuristics.rb +6 -2
- data/lib/linguist/heuristics.yml +18 -4
- data/lib/linguist/language.rb +6 -3
- data/lib/linguist/languages.json +1 -1
- data/lib/linguist/languages.yml +385 -43
- data/lib/linguist/linguist.bundle +0 -0
- data/lib/linguist/linguist.so +0 -0
- data/lib/linguist/repository.rb +7 -3
- data/lib/linguist/samples.json +1 -1
- data/lib/linguist/shebang.rb +4 -1
- data/lib/linguist/strategy/modeline.rb +4 -0
- data/lib/linguist/vendor.yml +3 -0
- metadata +36 -5
- data/grammars/source.SASLog.json +0 -1
- data/grammars/source.mcfunction-snapshot.json +0 -1
- data/grammars/source.protobuf.json +0 -1
@@ -1 +0,0 @@
|
|
1
|
-
{"name":"Protocol Buffer","scopeName":"source.protobuf","patterns":[{"name":"meta.import.declaration.protobuf","match":"(import) (\".*\")","captures":{"1":{"name":"keyword.other.import.protobuf"},"2":{"name":"string.quoted.double.import.protobuf"}}},{"name":"meta.syntax.declaration.protobuf","match":"(syntax)\\s*=\\s*(\".*\")","captures":{"1":{"name":"keyword.other.syntax.protobuf"},"2":{"name":"string.quoted.double.syntax.protobuf"}}},{"name":"meta.message-declaration.protobuf","begin":"\\b(message)\\s+([A-Za-z0-9_]+)\\s*\\{","end":"}","patterns":[{"include":"$self"},{"include":"#any_field"},{"include":"#comments"},{"include":"#multiline_comments"}],"captures":{"1":{"name":"storage.type.message.protobuf"},"2":{"name":"entity.name.type.message.protobuf"}}},{"name":"meta.enum-declaration.protobuf","begin":"\\b(enum)\\s+([A-Za-z0-9_]+)\\s*\\{","end":"}","patterns":[{"name":"meta.individual-enum-definition.protobuf","match":"\\b([A-Za-z0-9_]+)\\s*=\\s*(\\d+)\\b","captures":{"1":{"name":"constant.other.user-defined.protobuf"},"2":{"name":"constant.numeric.protobuf"}}},{"include":"#anywhere_option"},{"include":"#bracketed_option"},{"include":"#comments"},{"include":"#multiline_comments"}],"beginCaptures":{"1":{"name":"storage.type.enum.protobuf"},"2":{"name":"entity.name.type.enum.protobuf"}}},{"name":"meta.oneof-declaration.protobuf","begin":"\\b(oneof)\\s+([A-Za-z0-9_]+)\\s*\\{","end":"}","patterns":[{"name":"meta.individual-oneof-definition.protobuf","match":"\\b([A-Za-z0-9_]+)\\s*=\\s*(\\d+)\\b","captures":{"1":{"name":"constant.other.user-defined.protobuf"},"2":{"name":"constant.numeric.protobuf"}}},{"include":"$self"},{"include":"#any_field"},{"include":"#comments"},{"include":"#multiline_comments"}],"beginCaptures":{"1":{"name":"storage.type.oneof.protobuf"},"2":{"name":"entity.name.type.oneof.protobuf"}}},{"name":"meta.service-declaration.protobuf","begin":"\\b(service)\\s+([A-Za-z0-9_]+)\\s*\\{","end":"}","patterns":[{"name":"meta.individual-rpc-call.protobuf","match":"\\b(rpc)\\s+([A-Za-z0-9_]+)\\s+\\(([A-Za-z0-9_.]+)\\)\\s*(returns)\\s*\\(([A-Za-z0-9_.]+)\\)\\s*;","captures":{"1":{"name":"keyword.other.rpc-definition.protobuf"},"2":{"name":"entity.name.function.service-rpc.protobuf"},"3":{"name":"variable.parameter.request-type.protobuf"},"4":{"name":"keyword.operator.returns.protobuf"},"5":{"name":"variable.parameter.response-type.protobuf"}}},{"name":"meta.method-mofification.protobuf","begin":"\\b(method)\\s+([A-Za-z0-9_]+)\\s*\\(\\s*\\)\\s*{","end":"}","patterns":[{"include":"#comments"},{"include":"#rpc_string_attribute"},{"include":"#rpc_primitive_attribute"}],"captures":{"1":{"name":"keyword.other.method-modification.protobuf"},"2":{"name":"entity.name.function.protobuf"}}},{"include":"#anywhere_option"},{"include":"#comments"},{"include":"#multiline_comments"}],"beginCaptures":{"1":{"name":"storage.type.enum.protobuf"},"2":{"name":"entity.name.type.enum.protobuf"}}},{"name":"meta.package.protobuf","match":"\\b(package)\\s+([A-Za-z0-9._]+)\\s*;","captures":{"1":{"name":"keyword.other.package-definition.protobuf"},"2":{"name":"entity.name.section.protobuf"}}},{"name":"meta.extension-specification.protobuf","match":"(extensions)\\s+(\\d+)\\s+(to)\\s+(max|\\d+);","captures":{"1":{"name":"storage.modifier.extensions.protobuf"},"2":{"name":"constant.numeric.protobufs"},"3":{"name":"keyword.operator.to.protobufs"},"4":{"name":"constant.numeric.protobufs"}}},{"include":"#anywhere_option"},{"include":"#bracketed_option"},{"include":"#extend_block"},{"include":"#comments"},{"include":"#multiline_comments"}],"repository":{"any_field":{"patterns":[{"include":"#primitive_field"},{"include":"#group_field"},{"include":"#user_defined_message_field"},{"include":"#reserved_field"}]},"anywhere_option":{"begin":"(option)\\s+","end":";","patterns":[{"include":"#attribute"}],"beginCaptures":{"1":{"name":"keyword.other.option.protobuf"}}},"attribute":{"patterns":[{"include":"#indiv_attribute"},{"include":"#string_attribute"}]},"bracketed_option":{"begin":"\\[","end":";","patterns":[{"include":"#attribute"}]},"comments":{"name":"comment.line.double-slash.protobuf","begin":"//","end":"\\n"},"extend_block":{"begin":"\\b(extend)\\s+([A-Za-z0-9_]+)\\s*\\{","end":"}","patterns":[{"include":"#any_field"},{"include":"#comments"}],"captures":{"1":{"name":"storage.type.extend.protobuf"},"2":{"name":"entity.name.type.message.protobuf"}}},"group_field":{"begin":"(required|optional|repeated)?\\s+?(group)\\s+([A-Za-z0-9_]+)\\s*=\\s*(\\d+)\\s*{","end":"}","patterns":[{"include":"#any_field"},{"include":"#comments"}],"captures":{"1":{"name":"keyword.control.occurrences.protobuf"},"2":{"name":"invalid.deprecated.groups.protobuf"},"3":{"name":"variable.other.primitive-field.protobuf"},"4":{"name":"constant.numeric.field-tag.protobuf"}}},"indiv_attribute":{"match":"\\(?([A-Za-z0-9_.]+)\\)?\\s*=\\s*(true|false|\\d+|([A-Z_]+))\\b","captures":{"1":{"name":"entity.other.attribute-name.protobuf"},"2":{"name":"constant.language.field-option-values.protobuf"}}},"multiline_comments":{"name":"comment.block.protobuf","begin":"/\\*","end":"\\*/"},"primitive_field":{"match":"(required|optional|repeated)?\\s+?(((s|u)?int|s?fixed)(32|64)|string|bytes|bool)\\s+(\\S+)\\s*=\\s*(\\d+)","captures":{"1":{"name":"keyword.control.occurrences.protobuf"},"2":{"name":"storage.type.built-in.protobuf"},"6":{"name":"variable.other.primitive-field.protobuf"},"7":{"name":"constant.numeric.field-tag.protobuf"}}},"reserved_field":{"match":"(reserved)\\s+(\\d+)","captures":{"1":{"name":"keyword.control.occurrences.protobuf"},"2":{"name":"constant.numeric.field-tag.protobuf"}}},"rpc_primitive_attribute":{"match":"(option)\\s+\\(?([A-Za-z0-9_.]+)\\)?\\.([A-Za-z0-9.]+)\\s*=\\s*(true|false|\\d+|([A-Z_]+))\\b","beginCaptures":{"1":{"name":"keyword.other.option.protobuf"},"2":{"name":"entity.other.attribute-name.protobuf"},"3":{"name":"entity.other.attribute-name.protobuf"},"4":{"name":"constant.numeric.protobuf"}}},"rpc_string_attribute":{"contentName":"string.quoted.double.protobuf","begin":"(option)\\s+\\(?([A-Za-z0-9_.]+)\\)?\\.([A-Za-z0-9.]+)\\s*=\\s*(\")","end":"(\")","beginCaptures":{"1":{"name":"keyword.other.option.protobuf"},"2":{"name":"entity.other.attribute-name.protobuf"},"3":{"name":"entity.other.attribute-name.protobuf"},"4":{"name":"string.quoted.double.protobuf"}},"endCaptures":{"1":{"name":"string.quoted.double.protobuf"}}},"string_attribute":{"contentName":"string.quoted.double.protobuf","begin":"\\(?([A-Za-z0-9_.]+)\\)?\\s*=\\s*(\")","end":"(\")","beginCaptures":{"1":{"name":"entity.other.attribute-name.protobuf"},"2":{"name":"string.quoted.double.protobuf"}},"endCaptures":{"1":{"name":"string.quoted.double.protobuf"}}},"user_defined_message_field":{"match":"(required|optional|repeated)?\\s+?([A-Za-z._]*)\\s+(\\S+)\\s*=\\s*(\\d+)","captures":{"1":{"name":"keyword.control.occurrences.protobuf"},"2":{"name":"support.class.user-defined-type.protobuf"},"3":{"name":"variable.other.primitive-field.protobuf"},"4":{"name":"constant.numeric.field-tag.protobuf"}}}}}
|