Skip to content

Commit

Permalink
Made multi-line tokens work
Browse files Browse the repository at this point in the history
  • Loading branch information
LordGolias committed Jul 21, 2024
1 parent 7d2097a commit 6ca0805
Show file tree
Hide file tree
Showing 9 changed files with 1,957 additions and 1,665 deletions.
476 changes: 220 additions & 256 deletions Cargo.lock

Large diffs are not rendered by default.

25 changes: 22 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,28 @@ The Rust crate supporting this implementation can be found [here](https://github
See [client/README.md](client/README.md) for a summary of current functionality.

## How to develop
1. `pnpm i`
2. `cargo build --release`
3. press <kbd>F5</kbd> or change to the Debug panel and click <kbd>Launch Client</kbd>

```bash
cargo build --release

curl -fsSL https://get.pnpm.io/install.sh | sh -
curl -fsSL https://fnm.vercel.app/install | bash
fnm use --install-if-missing 20
source /root/.bashrc
cd client
pnpm i
```

* Open [`example.sqf`](./example.sqf)
* press <kbd>F5</kbd> or change to the Debug panel and click <kbd>Launch Client</kbd>

## How to publish

1. Commit everything
2. build latest `cargo build --release`
3. Bump version in [`client/package.json`](./client/package.json)
4. Run `cd client && pnpm package && pnpm publish`
5. `git tag <version> && git push origin <version>`

# Authors

Expand Down
19 changes: 11 additions & 8 deletions client/README.md
Original file line number Diff line number Diff line change
@@ -1,17 +1,20 @@
# sqf-analyzer

This extension provides support for the [SQF programming language](https://community.bistudio.com/wiki/SQF_Syntax).
This extension provides full support for the [SQF programming language](https://community.bistudio.com/wiki/SQF_Syntax).

## Quick start
It provides a full-feature functionality, including but not limited to:

Install the extension and open an `.sqf` file.
* Semantic syntax highlighting
* Go to definition
* Inlay hints for types and parameter names
* Full support for macro expansion (e.g. `#define`)
* Compreensive type checker, including function signatures via `params`
* Full support for listing available functions via `CfgFunction` in mission
* External Addons

## Features
## Quick start

- go to definition
- inlay hints for types and parameter names
- semantic syntax highlighting
- External Addons
Install the extension and open an `.sqf` file.

### Full support for evaluating preprocessor

Expand Down
3 changes: 2 additions & 1 deletion client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"displayName": "sqf-analyzer",
"description": "SQF language support for Visual Studio Code",
"license": "MIT",
"version": "0.2.3",
"version": "0.2.4",
"icon": "icon.png",
"keywords": [
"sqf"
Expand Down Expand Up @@ -70,6 +70,7 @@
"build-base": "esbuild ./src/extension.ts --bundle --outfile=out/extension.js --external:vscode --format=cjs --platform=node --target=node16",
"compile": "pnpm run build-base --sourcemap",
"package": "vsce package --no-dependencies",
"publish": "vsce publish --no-dependencies",
"watch": "pnpm run build-base -- --sourcemap --watch",
"check": "tsc --noEmit",
"vscode:prepublish": "pnpm run build-base --minify",
Expand Down
Loading

0 comments on commit 6ca0805

Please sign in to comment.