github-linguist 9.2.0 → 9.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/bin/github-linguist +23 -4
- data/grammars/injection.interpolated-ruby.json +1 -0
- data/grammars/injections.etc.json +1 -1
- data/grammars/inline.edgeql.json +1 -1
- data/grammars/markdown.move.codeblock.json +1 -1
- data/grammars/source.abl.json +1 -1
- data/grammars/source.ash.json +1 -0
- data/grammars/source.ats.json +1 -1
- data/grammars/source.bru.json +1 -0
- data/grammars/source.c++.json +1 -1
- data/grammars/source.c.json +1 -1
- data/grammars/source.c.linker.json +1 -1
- data/grammars/source.c3.json +1 -0
- data/grammars/source.cmake.json +1 -1
- data/grammars/source.cmakecache.json +1 -1
- data/grammars/source.cobol.json +1 -1
- data/grammars/source.cooklang.json +1 -0
- data/grammars/source.cs.json +1 -1
- data/grammars/source.curlrc.json +1 -1
- data/grammars/source.dotenv.json +1 -1
- data/grammars/source.edgeql.json +1 -1
- data/grammars/source.erlang.json +1 -1
- data/grammars/source.flix.json +1 -0
- data/grammars/source.fsharp.json +1 -1
- data/grammars/source.gdscript.json +1 -1
- data/grammars/source.gitignore.json +1 -1
- data/grammars/source.harbour.json +1 -1
- data/grammars/source.httpspec.json +1 -1
- data/grammars/source.hx.json +1 -1
- data/grammars/source.ilecobol.json +1 -1
- data/grammars/source.inputrc.json +1 -1
- data/grammars/source.jai.json +1 -1
- data/grammars/source.jq.json +1 -1
- data/grammars/source.json.comments.json +1 -1
- data/grammars/source.julia.json +1 -1
- data/grammars/source.lean4.json +1 -1
- data/grammars/source.luau.json +1 -1
- data/grammars/source.mermaid.flowchart.json +1 -1
- data/grammars/source.mermaid.gantt.json +1 -1
- data/grammars/source.mermaid.json +1 -1
- data/grammars/source.mermaid.pie-chart.json +1 -1
- data/grammars/source.mermaid.quad-chart.json +1 -0
- data/grammars/source.mermaid.sankey.json +1 -0
- data/grammars/source.mermaid.timeline.json +1 -0
- data/grammars/source.mermaid.user-journey.json +1 -1
- data/grammars/source.mermaid.zenuml.json +1 -0
- data/grammars/source.moonbit.json +1 -1
- data/grammars/source.move.json +1 -1
- data/grammars/source.nginx.json +1 -1
- data/grammars/source.nickel.json +1 -0
- data/grammars/source.nim.json +1 -1
- data/grammars/source.nr.json +1 -1
- data/grammars/source.nushell.json +1 -1
- data/grammars/source.odin-ehr.json +1 -1
- data/grammars/source.openqasm.json +1 -1
- data/grammars/source.postscript.json +1 -1
- data/grammars/source.psl.json +1 -0
- data/grammars/source.quakec.json +1 -0
- data/grammars/source.rascal.json +1 -1
- data/grammars/source.record-jar.json +1 -1
- data/grammars/source.rosmsg.json +1 -0
- data/grammars/source.sieve.json +1 -1
- data/grammars/source.slang.json +1 -1
- data/grammars/source.slint.json +1 -1
- data/grammars/source.stan.json +1 -1
- data/grammars/source.swift.json +1 -1
- data/grammars/source.templ.json +1 -1
- data/grammars/source.vba.json +1 -1
- data/grammars/source.vcl.json +1 -0
- data/grammars/source.vento.json +1 -1
- data/grammars/source.vhdl.json +1 -1
- data/grammars/source.vue.json +1 -1
- data/grammars/source.wdl.json +1 -1
- data/grammars/source.wesl.json +1 -0
- data/grammars/source.wgsl.json +1 -1
- data/grammars/source.wit.json +1 -1
- data/grammars/text.codeowners.json +1 -1
- data/grammars/text.html.jte.json +1 -1
- data/grammars/text.jira.json +1 -0
- data/grammars/text.marko.json +1 -1
- data/grammars/text.slim.json +1 -1
- data/grammars/text.srt.json +1 -1
- data/grammars/text.xml.svg.json +1 -1
- data/grammars/version +1 -1
- data/lib/linguist/VERSION +1 -1
- data/lib/linguist/generated.rb +5 -5
- data/lib/linguist/generic.yml +2 -0
- data/lib/linguist/heuristics.yml +39 -8
- data/lib/linguist/instrumenter.rb +19 -0
- data/lib/linguist/languages.json +1 -1
- data/lib/linguist/languages.yml +184 -92
- data/lib/linguist/samples.json +1 -1
- data/lib/linguist.rb +1 -0
- metadata +20 -3
- data/grammars/source.varnish.vcl.json +0 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 93ecffde246d32e12489241c6b6db463db994669d77e8d722c3907dbd014d4a5
|
4
|
+
data.tar.gz: 05c81b465222ee840c14ba1f5c81f00d36ea7329cdb9d9142e7d4271f33b1ba6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5716fbc7189116a00f9fdea08267ed5140b3d15e8e523c9d84bcaa840243fe92224084840cc82aac26d4b4994d8bdd169b68abe6c4191b1fa213a03d53eb8bd0
|
7
|
+
data.tar.gz: cec4e42ab521989fb8b1b685c0999bb7de0c23b916c40faf2dfe332e77c532f68397ed9bdfb7acaebc03661286b431ea3d0b801a8cc3d08080793839d8322318
|
data/bin/github-linguist
CHANGED
@@ -13,13 +13,14 @@ Linguist v#{Linguist::VERSION}
|
|
13
13
|
Detect language type and determine language breakdown for a given Git repository.
|
14
14
|
|
15
15
|
Usage: github-linguist <path>
|
16
|
-
github-linguist <path> [--rev REV] [--tree-size] [--breakdown] [--json]
|
17
|
-
github-linguist [--rev REV] [--tree-size] [--breakdown] [--json]
|
16
|
+
github-linguist <path> [--rev REV] [--tree-size] [--breakdown] [--strategies] [--json]
|
17
|
+
github-linguist [--rev REV] [--tree-size] [--breakdown] [--strategies] [--json]
|
18
18
|
HELP
|
19
19
|
|
20
20
|
def github_linguist(args)
|
21
21
|
breakdown = false
|
22
22
|
json_output = false
|
23
|
+
show_strategies = false
|
23
24
|
tree_size = Linguist::Repository::MAX_TREE_SIZE
|
24
25
|
rev = 'HEAD'
|
25
26
|
path = Dir.pwd
|
@@ -29,6 +30,7 @@ def github_linguist(args)
|
|
29
30
|
opts.version = Linguist::VERSION
|
30
31
|
|
31
32
|
opts.on("-b", "--breakdown", "Analyze entire repository and display detailed usage statistics") { breakdown = true }
|
33
|
+
opts.on("-s", "--strategies", "Show language detection strategy used for each file") { show_strategies = true }
|
32
34
|
opts.on("-j", "--json", "Output results as JSON") { json_output = true }
|
33
35
|
opts.on("-r", "--rev REV", String,
|
34
36
|
"Analyze specific git revision",
|
@@ -59,6 +61,11 @@ def github_linguist(args)
|
|
59
61
|
puts "invalid revision '#{rev}' for repo '#{path}'"
|
60
62
|
exit 1
|
61
63
|
end
|
64
|
+
|
65
|
+
# Set up instrumentation to track detection strategies if requested
|
66
|
+
instrumenter = show_strategies ? Linguist::BasicInstrumenter.new : nil
|
67
|
+
Linguist.instrumenter = instrumenter
|
68
|
+
|
62
69
|
repo = Linguist::Repository.new(rugged, target_oid, tree_size)
|
63
70
|
|
64
71
|
full_results = {}
|
@@ -72,13 +79,18 @@ def github_linguist(args)
|
|
72
79
|
full_results.sort_by { |_, v| v[:size] }.reverse.each do |language, details|
|
73
80
|
puts "%-7s %-10s %s" % ["#{details[:percentage]}%", details[:size], language]
|
74
81
|
end
|
75
|
-
if breakdown
|
82
|
+
if breakdown || show_strategies
|
76
83
|
puts
|
77
84
|
file_breakdown = repo.breakdown_by_file
|
78
85
|
file_breakdown.each do |lang, files|
|
79
86
|
puts "#{lang}:"
|
80
87
|
files.each do |file|
|
81
|
-
|
88
|
+
strategy_info = instrumenter&.detected_info&.[](file)
|
89
|
+
if show_strategies && strategy_info
|
90
|
+
puts " #{file} [#{strategy_info[:strategy]}]"
|
91
|
+
else
|
92
|
+
puts " #{file}"
|
93
|
+
end
|
82
94
|
end
|
83
95
|
puts
|
84
96
|
end
|
@@ -96,6 +108,9 @@ def github_linguist(args)
|
|
96
108
|
end
|
97
109
|
end
|
98
110
|
elsif File.file?(path)
|
111
|
+
# Set up instrumentation to track detection strategies if requested
|
112
|
+
instrumenter = show_strategies ? Linguist::BasicInstrumenter.new : nil
|
113
|
+
Linguist.instrumenter = instrumenter
|
99
114
|
|
100
115
|
begin
|
101
116
|
# Check if this file is inside a git repository so we have things like
|
@@ -134,6 +149,10 @@ def github_linguist(args)
|
|
134
149
|
puts " type: #{type}"
|
135
150
|
puts " mime type: #{blob.mime_type}"
|
136
151
|
puts " language: #{blob.language}"
|
152
|
+
if show_strategies && blob.language
|
153
|
+
strategy_info = instrumenter.detected_info[blob.name]
|
154
|
+
puts " strategy: #{strategy_info[:strategy]}" if strategy_info
|
155
|
+
end
|
137
156
|
|
138
157
|
if blob.large?
|
139
158
|
puts " blob is too large to be shown"
|
@@ -0,0 +1 @@
|
|
1
|
+
{"scopeName":"injection.interpolated-ruby","patterns":[{"include":"#interpolated-ruby"}],"repository":{"interpolated-ruby":{"name":"meta.interpolation.slim meta.string.ruby source.ruby.embedded.slim","begin":"(?\u003c!\\\\)#\\{{1,2}","end":"\\}{1,2}","patterns":[{"include":"source.ruby"}],"beginCaptures":{"0":{"name":"punctuation.section.interpolation.begin.slim"}},"endCaptures":{"0":{"name":"punctuation.section.interpolation.end.slim"}}}}}
|
@@ -1 +1 @@
|
|
1
|
-
{"scopeName":"injections.etc","patterns":[{"name":"storage.type.class.${1:/downcase}","match":"(?\u003c!\\w)@?(PINHACK)\\b"}],"repository":{"scopeHack":{"begin":"\\A(?:\\xC2\\xAD|\\
|
1
|
+
{"scopeName":"injections.etc","patterns":[{"name":"storage.type.class.${1:/downcase}","match":"(?\u003c!\\w)@?(PINHACK)\\b"}],"repository":{"scopeHack":{"begin":"\\A(?:\\xC2\\xAD|\\x{AD}){50}","end":"(?=A)B","patterns":[{"name":"markup.bold","match":"^ {5}(PRIMER PREVIEW - How grammar scopes look on GitHub):","captures":{"1":{"name":"constant.other.reference.link"}}},{"name":"comment.line","match":"^\\s*Last updated:\\s*(\\d{4}-\\d{2}-\\d{2})$"},{"name":"constant.other.reference.link","match":"^│ +(TEXTMATE.*) +│$","captures":{"1":{"name":"markup.heading"}}},{"match":"^│ +│$","captures":{"0":{"name":"constant.other.reference.link"}}},{"match":"^│\\s+(brackethighlighter.angle\\s+\\S+\\s+░▒▓█+)\\s+│$","captures":{"1":{"name":"brackethighlighter.angle"}}},{"match":"^│\\s+(brackethighlighter.curly\\s+\\S+\\s+░▒▓█+)\\s+│$","captures":{"1":{"name":"brackethighlighter.curly"}}},{"match":"^│\\s+(brackethighlighter.quote\\s+\\S+\\s+░▒▓█+)\\s+│$","captures":{"1":{"name":"brackethighlighter.quote"}}},{"match":"^│\\s+(brackethighlighter.round\\s+\\S+\\s+░▒▓█+)\\s+│$","captures":{"1":{"name":"brackethighlighter.round"}}},{"match":"^│\\s+(brackethighlighter.square\\s+\\S+\\s+░▒▓█+)\\s+│$","captures":{"1":{"name":"brackethighlighter.square"}}},{"match":"^│\\s+(brackethighlighter.tag\\s+\\S+\\s+░▒▓█+)\\s+│$","captures":{"1":{"name":"brackethighlighter.tag"}}},{"match":"^│\\s+(brackethighlighter.unmatched\\s+\\S+\\s+░▒▓█+)\\s+│$","captures":{"1":{"name":"brackethighlighter.unmatched"}}},{"match":"^│\\s+(carriage-return\\s+\\S+\\s+░▒▓█+)\\s+│$","captures":{"1":{"name":"carriage-return"}}},{"match":"^│\\s+(comment\\s+\\S+\\s+░▒▓█+)\\s+│$","captures":{"1":{"name":"comment"}}},{"match":"^│\\s+(constant\\s+\\S+\\s+░▒▓█+)\\s+│$","captures":{"1":{"name":"constant"}}},{"match":"^│\\s+(constant.character.escape\\s+\\S+\\s+░▒▓█+)\\s+│$","captures":{"1":{"name":"constant.character.escape"}}},{"match":"^│\\s+(constant.other.reference.link\\s+\\S+\\s+░▒▓█+)\\s+│$","captures":{"1":{"name":"constant.other.reference.link"}}},{"match":"^│\\s+(entity\\s+\\S+\\s+░▒▓█+)\\s+│$","captures":{"1":{"name":"entity"}}},{"match":"^│\\s+(entity.name\\s+\\S+\\s+░▒▓█+)\\s+│$","captures":{"1":{"name":"entity.name"}}},{"match":"^│\\s+(entity.name.constant\\s+\\S+\\s+░▒▓█+)\\s+│$","captures":{"1":{"name":"entity.name.constant"}}},{"match":"^│\\s+(entity.name.tag\\s+\\S+\\s+░▒▓█+)\\s+│$","captures":{"1":{"name":"entity.name.tag"}}},{"match":"^│\\s+(invalid.broken\\s+\\S+\\s+░▒▓█+)\\s+│$","captures":{"1":{"name":"invalid.broken"}}},{"match":"^│\\s+(invalid.deprecated\\s+\\S+\\s+░▒▓█+)\\s+│$","captures":{"1":{"name":"invalid.deprecated"}}},{"match":"^│\\s+(invalid.illegal\\s+\\S+\\s+░▒▓█+)\\s+│$","captures":{"1":{"name":"invalid.illegal"}}},{"match":"^│\\s+(invalid.unimplemented\\s+\\S+\\s+░▒▓█+)\\s+│$","captures":{"1":{"name":"invalid.unimplemented"}}},{"match":"^│\\s+(keyword\\s+\\S+\\s+░▒▓█+)\\s+│$","captures":{"1":{"name":"keyword"}}},{"match":"^│\\s+(keyword.operator.symbole\\s+\\S+\\s+░▒▓█+)\\s+│$","captures":{"1":{"name":"keyword.operator.symbole"}}},{"match":"^│\\s+(keyword.other.mark\\s+\\S+\\s+░▒▓█+)\\s+│$","captures":{"1":{"name":"keyword.other.mark"}}},{"match":"^│\\s+(markup.bold\\s+\\S+\\s+░▒▓█+)\\s+│$","captures":{"1":{"name":"markup.bold"}}},{"match":"^│\\s+(markup.changed\\s+\\S+\\s+░▒▓█+)\\s+│$","captures":{"1":{"name":"markup.changed"}}},{"match":"^│\\s+(markup.deleted\\s+\\S+\\s+░▒▓█+)\\s+│$","captures":{"1":{"name":"markup.deleted"}}},{"match":"^│\\s+(markup.heading\\s+\\S+\\s+░▒▓█+)\\s+│$","captures":{"1":{"name":"markup.heading"}}},{"match":"^│\\s+(markup.ignored\\s+\\S+\\s+░▒▓█+)\\s+│$","captures":{"1":{"name":"markup.ignored"}}},{"match":"^│\\s+(markup.inserted\\s+\\S+\\s+░▒▓█+)\\s+│$","captures":{"1":{"name":"markup.inserted"}}},{"match":"^│\\s+(markup.italic\\s+\\S+\\s+░▒▓█+)\\s+│$","captures":{"1":{"name":"markup.italic"}}},{"match":"^│\\s+(markup.list\\s+\\S+\\s+░▒▓█+)\\s+│$","captures":{"1":{"name":"markup.list"}}},{"match":"^│\\s+(markup.quote\\s+\\S+\\s+░▒▓█+)\\s+│$","captures":{"1":{"name":"markup.quote"}}},{"match":"^│\\s+(markup.raw\\s+\\S+\\s+░▒▓█+)\\s+│$","captures":{"1":{"name":"markup.raw"}}},{"match":"^│\\s+(markup.untracked\\s+\\S+\\s+░▒▓█+)\\s+│$","captures":{"1":{"name":"markup.untracked"}}},{"match":"^│\\s+(message.error\\s+\\S+\\s+░▒▓█+)\\s+│$","captures":{"1":{"name":"message.error"}}},{"match":"^│\\s+(meta.diff.header\\s+\\S+\\s+░▒▓█+)\\s+│$","captures":{"1":{"name":"meta.diff.header"}}},{"match":"^│\\s+(meta.diff.header.from-file\\s+\\S+\\s+░▒▓█+)\\s+│$","captures":{"1":{"name":"meta.diff.header.from-file"}}},{"match":"^│\\s+(meta.diff.header.to-file\\s+\\S+\\s+░▒▓█+)\\s+│$","captures":{"1":{"name":"meta.diff.header.to-file"}}},{"match":"^│\\s+(meta.diff.range\\s+\\S+\\s+░▒▓█+)\\s+│$","captures":{"1":{"name":"meta.diff.range"}}},{"match":"^│\\s+(meta.module-reference\\s+\\S+\\s+░▒▓█+)\\s+│$","captures":{"1":{"name":"meta.module-reference"}}},{"match":"^│\\s+(meta.output\\s+\\S+\\s+░▒▓█+)\\s+│$","captures":{"1":{"name":"meta.output"}}},{"match":"^│\\s+(meta.property-name\\s+\\S+\\s+░▒▓█+)\\s+│$","captures":{"1":{"name":"meta.property-name"}}},{"match":"^│\\s+(meta.separator\\s+\\S+\\s+░▒▓█+)\\s+│$","captures":{"1":{"name":"meta.separator"}}},{"match":"^│\\s+(punctuation.definition.changed\\s+\\S+\\s+░▒▓█+)\\s+│$","captures":{"1":{"name":"punctuation.definition.changed"}}},{"match":"^│\\s+(punctuation.definition.comment\\s+\\S+\\s+░▒▓█+)\\s+│$","captures":{"1":{"name":"punctuation.definition.comment"}}},{"match":"^│\\s+(punctuation.definition.deleted\\s+\\S+\\s+░▒▓█+)\\s+│$","captures":{"1":{"name":"punctuation.definition.deleted"}}},{"match":"^│\\s+(punctuation.definition.inserted\\s+\\S+\\s+░▒▓█+)\\s+│$","captures":{"1":{"name":"punctuation.definition.inserted"}}},{"match":"^│\\s+(punctuation.definition.string\\s+\\S+\\s+░▒▓█+)\\s+│$","captures":{"1":{"name":"punctuation.definition.string"}}},{"match":"^│\\s+(punctuation.section.embedded\\s+\\S+\\s+░▒▓█+)\\s+│$","captures":{"1":{"name":"punctuation.section.embedded"}}},{"match":"^│\\s+(source\\s+\\S+\\s+░▒▓█+)\\s+│$","captures":{"1":{"name":"source"}}},{"match":"^│\\s+(source.regexp\\s+\\S+\\s+░▒▓█+)\\s+│$","captures":{"1":{"name":"source.regexp"}}},{"match":"^│\\s+(source.ruby.embedded\\s+\\S+\\s+░▒▓█+)\\s+│$","captures":{"1":{"name":"source.ruby.embedded"}}},{"match":"^│\\s+(storage\\s+\\S+\\s+░▒▓█+)\\s+│$","captures":{"1":{"name":"storage"}}},{"match":"^│\\s+(storage.modifier.import\\s+\\S+\\s+░▒▓█+)\\s+│$","captures":{"1":{"name":"storage.modifier.import"}}},{"match":"^│\\s+(storage.modifier.package\\s+\\S+\\s+░▒▓█+)\\s+│$","captures":{"1":{"name":"storage.modifier.package"}}},{"match":"^│\\s+(storage.type\\s+\\S+\\s+░▒▓█+)\\s+│$","captures":{"1":{"name":"storage.type"}}},{"match":"^│\\s+(storage.type.java\\s+\\S+\\s+░▒▓█+)\\s+│$","captures":{"1":{"name":"storage.type.java"}}},{"match":"^│\\s+(string\\s+\\S+\\s+░▒▓█+)\\s+│$","captures":{"1":{"name":"string"}}},{"match":"^│\\s+(string.comment\\s+\\S+\\s+░▒▓█+)\\s+│$","captures":{"1":{"name":"string.comment"}}},{"match":"^│\\s+(string.other.link\\s+\\S+\\s+░▒▓█+)\\s+│$","captures":{"1":{"name":"string.other.link"}}},{"match":"^│\\s+(string.regexp\\s+\\S+\\s+░▒▓█+)\\s+│$","captures":{"1":{"name":"string.regexp"}}},{"match":"^│\\s+(string.regexp.arbitrary-repitition\\s+\\S+\\s+░▒▓█+)\\s+│$","captures":{"1":{"name":"string.regexp.arbitrary-repitition"}}},{"match":"^│\\s+(string.regexp.character-class\\s+\\S+\\s+░▒▓█+)\\s+│$","captures":{"1":{"name":"string.regexp.character-class"}}},{"match":"^│\\s+(string.unquoted.import.ada\\s+\\S+\\s+░▒▓█+)\\s+│$","captures":{"1":{"name":"string.unquoted.import.ada"}}},{"match":"^│\\s+(sublimelinter.gutter-mark\\s+\\S+\\s+░▒▓█+)\\s+│$","captures":{"1":{"name":"sublimelinter.gutter-mark"}}},{"match":"^│\\s+(sublimelinter.mark.error\\s+\\S+\\s+░▒▓█+)\\s+│$","captures":{"1":{"name":"sublimelinter.mark.error"}}},{"match":"^│\\s+(sublimelinter.mark.warning\\s+\\S+\\s+░▒▓█+)\\s+│$","captures":{"1":{"name":"sublimelinter.mark.warning"}}},{"match":"^│\\s+(support\\s+\\S+\\s+░▒▓█+)\\s+│$","captures":{"1":{"name":"support"}}},{"match":"^│\\s+(support.constant\\s+\\S+\\s+░▒▓█+)\\s+│$","captures":{"1":{"name":"support.constant"}}},{"match":"^│\\s+(support.variable\\s+\\S+\\s+░▒▓█+)\\s+│$","captures":{"1":{"name":"support.variable"}}},{"match":"^│\\s+(variable\\s+\\S+\\s+░▒▓█+)\\s+│$","captures":{"1":{"name":"variable"}}},{"match":"^│\\s+(variable.language\\s+\\S+\\s+░▒▓█+)\\s+│$","captures":{"1":{"name":"variable.language"}}},{"match":"^│\\s+(variable.other\\s+\\S+\\s+░▒▓█+)\\s+│$","captures":{"1":{"name":"variable.other"}}},{"match":"^│\\s+(variable.other.constant\\s+\\S+\\s+░▒▓█+)\\s+│$","captures":{"1":{"name":"variable.other.constant"}}},{"match":"^│\\s+(variable.parameter.function\\s+\\S+\\s+░▒▓█+)\\s+│$","captures":{"1":{"name":"variable.parameter.function"}}},{"match":"^│\\s+(([a-z][-a-z.]+)\\s+\\S+\\s+░▒▓█+)\\s+│$","captures":{"1":{"name":"$2"}}},{"name":"comment.line","match":"^#.*$"}]}}}
|
data/grammars/inline.edgeql.json
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"scopeName":"inline.edgeql","patterns":[{"contentName":"meta.embedded.block.edgeql","begin":"(
|
1
|
+
{"scopeName":"inline.edgeql","patterns":[{"name":"commentTaggedString.edgeql","contentName":"meta.embedded.block.edgeql","begin":"('''|\"\"\"|'|\")(#\\s*edgeql)","end":"\\1","patterns":[{"include":"source.edgeql"}],"beginCaptures":{"1":{"name":"punctuation.definition.string.begin.dart"},"2":{"name":"comment.line.number-sign.edgeql"}},"endCaptures":{"0":{"name":"punctuation.definition.string.end.dart"}}},{"name":"commentTaggedString.edgeql.multiline","contentName":"meta.embedded.block.edgeql","begin":"(/\\*\\*\\s*edgeql\\s*\\**/)\\s*('''|\"\"\")","end":"\\2","patterns":[{"include":"source.edgeql"}],"beginCaptures":{"1":{"name":"punctuation.definition.comment.dart"},"2":{"name":"punctuation.definition.string.begin.dart"}},"endCaptures":{"0":{"name":"punctuation.definition.string.end.dart"}}},{"name":"rawStringTagged.edgeql","contentName":"meta.embedded.block.edgeql","begin":"(r)('''|\"\"\"|'|\")(#\\s*edgeql)","end":"\\2","patterns":[{"include":"source.edgeql"}],"beginCaptures":{"1":{"name":"storage.type.string.dart"},"2":{"name":"punctuation.definition.string.begin.dart"},"3":{"name":"comment.line.number-sign.edgeql"}},"endCaptures":{"0":{"name":"punctuation.definition.string.end.dart"}}}]}
|
@@ -1 +1 @@
|
|
1
|
-
{"scopeName":"markdown.move.codeblock","patterns":[{"include":"#move-code-block"}],"repository":{"move-code-block":{"name":"markup.fenced_code.block.markdown","begin":"(^|\\G)(\\s*)(\\`{3,}|~{3,})\\s*(?i:(move)(\\s+[^`~]*)?$)","end":"(^|\\G)(\\2|\\s{0,3})(\\3)\\s*$","patterns":[{"contentName":"meta.embedded.block.move","begin":"(^|\\G)(\\s*)(.*)","while":"(^|\\G)(?!\\s*([`~]{3,})\\s*$)","patterns":[{"include":"source.move#comments"},{"include":"source.move#
|
1
|
+
{"scopeName":"markdown.move.codeblock","patterns":[{"include":"#move-code-block"}],"repository":{"move-code-block":{"name":"markup.fenced_code.block.markdown","begin":"(^|\\G)(\\s*)(\\`{3,}|~{3,})\\s*(?i:(move)(\\s+[^`~]*)?$)","end":"(^|\\G)(\\2|\\s{0,3})(\\3)\\s*$","patterns":[{"contentName":"meta.embedded.block.move","begin":"(^|\\G)(\\s*)(.*)","while":"(^|\\G)(?!\\s*([`~]{3,})\\s*$)","patterns":[{"include":"source.move#comments"},{"include":"source.move#module"},{"include":"source.move#script"},{"include":"source.move#annotation"},{"include":"source.move#entry"},{"include":"source.move#public-scope"},{"include":"source.move#public"},{"include":"source.move#macro"},{"include":"source.move#native"},{"include":"source.move#import"},{"include":"source.move#friend"},{"include":"source.move#const"},{"include":"source.move#struct"},{"include":"source.move#enum"},{"include":"source.move#fun"},{"include":"source.move#spec"},{"include":"source.move#as"},{"include":"source.move#mut"},{"include":"source.move#let"},{"include":"source.move#types"},{"include":"source.move#assert"},{"include":"source.move#literals"},{"include":"source.move#control"},{"include":"source.move#move_copy"},{"include":"source.move#resource_methods"},{"include":"source.move#self_access"},{"include":"source.move#module_access"},{"include":"source.move#fun_call"},{"include":"source.move#block"},{"include":"source.move#expr"}]}],"beginCaptures":{"3":{"name":"punctuation.definition.markdown"},"4":{"name":"fenced_code.block.language.markdown"},"5":{"name":"fenced_code.block.language.attributes.markdown"}},"endCaptures":{"3":{"name":"punctuation.definition.markdown"}}}}}
|