Functions cannot have uppercase characters in Gleam

This commit is contained in:
Mikko Ahlroth 2023-01-03 18:38:04 +02:00
parent 56bc0a8b08
commit 7c3d4b6f86

View file

@ -7,7 +7,7 @@ Prism.languages.gleam = {
pattern: /\/\/.*/,
greedy: true,
},
function: /(?<=fn )([a-z_][a-zA-Z0-9_]+)(?=\()/,
function: /(?<=fn )([a-z_][a-z0-9_]+)(?=\()/,
keyword:
/\b(use|case|if|external|fn|import|let|assert|try|pub|type|opaque|const|todo|as)\b/,
operator: {