Skip to content

Commit

Permalink
v1.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
aspizu committed Dec 19, 2024
1 parent 688749d commit 4f51fdf
Show file tree
Hide file tree
Showing 64 changed files with 5,034 additions and 2,906 deletions.
985 changes: 691 additions & 294 deletions Cargo.lock

Large diffs are not rendered by default.

61 changes: 20 additions & 41 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,48 +1,27 @@
[package]
name = "goboscript"
version = "1.0.0"
description = "goboscript is the Scratch compiler."
license = "MIT"
keywords = ["scratch", "compiler"]
categories = ["compilers"]
documentation = "https://aspizu.github.io/goboscript"
homepage = "https://github.com/aspizu/goboscript"
repository = "https://github.com/aspizu/goboscript"
version = "1.1.0"
edition = "2021"
exclude = [
"/tools",
"/docs",
"/tests",
"/editors",
"/examples",
"gdsl.py",
"gdsl.txt",
"mkdocs.yml",
]

[dependencies]
anyhow = "1.0.81"
bumpalo = "3.15.4"
clap = { version = "4.5.3", features = ["derive"] }
clap_complete_command = "0.5.1"
clap_derive = "4.5.3"
colored = "2.1.0"
csscolorparser = "0.6.2"
fuzzy-matcher = "0.3.7"
fxhash = "0.2.1"
lalrpop-util = "0.20.2"
logos = "0.14.0"
md-5 = "0.10.6"
serde = { version = "1.0.197", features = ["derive"] }
serde_json = "1.0.114"
smol_str = "0.2.1"
toml = "0.8.11"
zip = { version = "0.6.6", default-features = false, features = ["deflate"] }
annotate-snippets = "0.11.4"
anyhow = "1.0.91"
clap = { version = "4.5.20", features = ["derive"] }
clap_complete_command = "0.6.1"
clap_derive = "4.5.18"
colored = "2.1.0"
csscolorparser = "0.7.0"
fxhash = "0.2.1"
lalrpop-util = "0.22.0"
log = "0.4.22"
logos = "0.14.2"
md-5 = "0.10.6"
pretty_env_logger = "0.5.0"
serde = { version = "1.0.210", features = ["derive"] }
serde_json = "1.0.128"
smol_str = "0.3.1"
toml = "0.8.19"
zip = { version = "2.2.0", features = ["deflate"] }

[build-dependencies]
lalrpop = "0.20.2"

[profile.release]
panic = "abort"
lto = "thin"
debug = true
lalrpop = "0.22.0"
1 change: 1 addition & 0 deletions clippy.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
too-many-arguments-threshold = 10
16 changes: 7 additions & 9 deletions editors/code/syntaxes/goboscript.tmGrammar.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ patterns:
- name: comment.block
begin: "/\\*"
end: "\\*/"
- name: comment.block
begin: "```"
end: "```"
- name: comment.line
begin: "#"
end: "$"
Expand All @@ -23,9 +26,9 @@ patterns:
- name: punctuation
match: ",|;"
- name: keyword
match: "\\b(costumes|sounds|global|variables|lists|nowarp|onflag|onkey|onbackdrop|onloudness|ontimer|on|onclone)\\b"
match: "\\b(costumes|sounds|global|list|nowarp|onflag|onkey|onbackdrop|onloudness|ontimer|on|onclone)\\b"
- name: keyword.control
match: "\\b(if|else|elif|until|forever|repeat|delete|at|add|to|insert|true|false)\\b"
match: "\\b(if|else|elif|until|forever|repeat|delete|at|add|to|insert|true|false|as)\\b"
- name: keyword
match: "\\b(error|warn|breakpoint|local|not|and|or|in|length|round|abs|floor|ceil|sqrt|sin|cos|tan|asin|acos|atan|ln|log|antiln|antilog)\\b"
- name: support.function.builtin
Expand All @@ -42,13 +45,8 @@ patterns:
match: "[a-zA-Z_0-9]+!"
- name: constant.numeric
match: "\\b([0-9][_0-9]*|0x[_0-9a-fA-F]+|0b[_0-1]+|0o[_0-7]+|([0-9][0-9]*)?\\.[0-9][_0-9]*)\\b"
- name: punctuation
match: "([a-zA-Z_0-9][_a-zA-Z_0-9]*)\\.([a-zA-Z_0-9][_a-zA-Z_0-9]*)"
captures:
1:
name: entity.name.type
2:
name: entity.name.function
- name: entity.name.function
match: "\\.([a-zA-Z_0-9][_a-zA-Z_0-9]*)"
- begin: "(enum)\\s+([a-zA-Z_][_a-zA-Z0-9]*)"
end: "\\{"
captures:
Expand Down
8 changes: 3 additions & 5 deletions rustfmt.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
use_small_heuristics = "Max"
max_width = 88
imports_granularity = "Crate"
group_imports = "StdExternalCrate"
imports_granularity = "Crate"
group_imports = "StdExternalCrate"
match_arm_leading_pipes = "Preserve"
where_single_line = true
where_single_line = true
Loading

0 comments on commit 4f51fdf

Please sign in to comment.