Skip to content

Commit

Permalink
WIP: improve go support
Browse files Browse the repository at this point in the history
  • Loading branch information
gregoire-mullvad committed Oct 2, 2024
1 parent 018908c commit ab62ece
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 16 deletions.
16 changes: 16 additions & 0 deletions example-files/example.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
package main

func main() {

// Comments
// 🛫
/* 📸 */

// String/rune literals
_ = "🐹"
_ = '🐖'
_ = `👃`

// Homoglyph
environmentǃ="ENV_PROD"
}
16 changes: 0 additions & 16 deletions example-files/homoglyph.go

This file was deleted.

1 change: 1 addition & 0 deletions src/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@ static GO_CODE_TYPES: phf::Map<&'static str, CodeType> = phf::phf_map! {

"interpreted_string_literal" => CodeType::StringLiteral,
"raw_string_literal" => CodeType::StringLiteral,
"rune_literal" => CodeType::StringLiteral,
};

static JAVASCRIPT_CODE_TYPES: phf::Map<&'static str, CodeType> = phf::phf_map! {
Expand Down

0 comments on commit ab62ece

Please sign in to comment.