You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
My understanding is that this repo also powers the syntax highlighting for GitHub since github-linguist/linguistpoints here.
Lots of files in gleam-lang/stdlib do not highlight properly on GitHub (example, example, example). Here's a small demo:
importgleam/resultimportgleam/intimportgleam/listimportgleam/map.{typeMap}importgleam/option.{typeOption,None,Some}importgleam/order// Internal private representation of an IteratortypeAction(element){// Dedicated to Electric Six// https://youtu.be/_30t2dzEgiw?t=162StopContinue(element,fn()->Action(element))}/// Traverse an iterator, calling a function on each element.////// ```gleam/// > from_list(["Tom", "Malory", "Louis"]) |> each(io.println)/// // -> Tom/// // -> Malory/// // -> Louis/// Nil/// ```///pubfnyield(element: a,next:fn()->Iterator(a))->Iterator(a){Iterator(fn(){Continue(element,next().continuation)})}
In every example, the issue seems to be related to the import a/b.{type c} syntax.
A similar (though less severe) issue for the Dart language seems related. It's unclear if this is a bug in this repo, in GitHub's highlighting, or in VSCode's highlighting.
The text was updated successfully, but these errors were encountered:
Hello! This repo is not used by GitHub for their syntax highlighting, instead they use the Gleam tree sitter grammar. You will need to ask GitHub support to upgrade to the latest version of the tree sitter grammar as this part of the GitHub config is not open source.
My understanding is that this repo also powers the syntax highlighting for GitHub since
github-linguist/linguist
points here.Lots of files in
gleam-lang/stdlib
do not highlight properly on GitHub (example, example, example). Here's a small demo:In every example, the issue seems to be related to the
import a/b.{type c}
syntax.A similar (though less severe) issue for the Dart language seems related. It's unclear if this is a bug in this repo, in GitHub's highlighting, or in VSCode's highlighting.
The text was updated successfully, but these errors were encountered: