Skip to content

Commit

Permalink
add base keywords for .ose file
Browse files Browse the repository at this point in the history
  • Loading branch information
shezw committed Apr 2, 2024
1 parent edfdf27 commit d4f1a32
Show file tree
Hide file tree
Showing 6 changed files with 1,544 additions and 118 deletions.
64 changes: 2 additions & 62 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,65 +1,5 @@
# ose-language-highlight README

This is the README for your extension "ose-language-highlight". After writing up a brief description, we recommend including the following sections.
This extension only provides syntax highlight for .ose files in vscode.

## Features

Describe specific features of your extension including screenshots of your extension in action. Image paths are relative to this README file.

For example if there is an image subfolder under your extension project workspace:

\!\[feature X\]\(images/feature-x.png\)

> Tip: Many popular extensions utilize animations. This is an excellent way to show off your extension! We recommend short, focused animations that are easy to follow.
## Requirements

If you have any requirements or dependencies, add a section describing those and how to install and configure them.

## Extension Settings

Include if your extension adds any VS Code settings through the `contributes.configuration` extension point.

For example:

This extension contributes the following settings:

* `myExtension.enable`: Enable/disable this extension.
* `myExtension.thing`: Set to `blah` to do something.

## Known Issues

Calling out known issues can help limit users opening duplicate issues against your extension.

## Release Notes

Users appreciate release notes as you update your extension.

### 1.0.0

Initial release of ...

### 1.0.1

Fixed issue #.

### 1.1.0

Added features X, Y, and Z.

---

## Working with Markdown

You can author your README using Visual Studio Code. Here are some useful editor keyboard shortcuts:

* Split the editor (`Cmd+\` on macOS or `Ctrl+\` on Windows and Linux).
* Toggle preview (`Shift+Cmd+V` on macOS or `Shift+Ctrl+V` on Windows and Linux).
* Press `Ctrl+Space` (Windows, Linux, macOS) to see a list of Markdown snippets.

## For more information

* [Visual Studio Code's Markdown Support](http://code.visualstudio.com/docs/languages/markdown)
* [Markdown Syntax Reference](https://help.github.com/articles/markdown-basics/)

**Enjoy!**
based on [vscode-viml](https://github.com/XadillaX/vscode-language-viml)
Binary file added assets/logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
44 changes: 22 additions & 22 deletions language-configuration.json
Original file line number Diff line number Diff line change
@@ -1,30 +1,30 @@
{
"comments": {
// symbol used for single line comment. Remove this entry if your language does not support line comments
"lineComment": "//",
// symbols used for start and end a block comment. Remove this entry if your language does not support block comments
"blockComment": [ "/*", "*/" ]
"lineComment": "\"",
},
// symbols used as brackets
"brackets": [
["{", "}"],
["[", "]"],
["(", ")"]
[ "{", "}" ],
[ "[", "]" ],
[ "(", ")" ],
[ "<", ">" ]
],
// symbols that are auto closed when typing
"autoClosingPairs": [
["{", "}"],
["[", "]"],
["(", ")"],
["\"", "\""],
["'", "'"]
[ "{", "}" ],
[ "[", "]" ],
[ "(", ")" ],
[ "'", "'" ]
],
// symbols that can be used to surround a selection
"surroundingPairs": [
["{", "}"],
["[", "]"],
["(", ")"],
["\"", "\""],
["'", "'"]
]
}
[ "{", "}" ],
[ "[", "]" ],
[ "(", ")" ],
[ "'", "'" ],
[ "\"", "\"" ],
[ "<", ">" ]
],
"indentationRules": {
"increaseIndentPattern": "(?:^|\\s)(?:if|else|elseif|for|function!?|fu|fun|func|augroup|aug|try|catch|while)(?:\\s|$)",
"decreaseIndentPattern": "(?:^|\\s)(?:endif|endfor|endf|endfun|endfunction|endtry|endwhile|(?:augroup|aug)\\.END)(?:\\s|$)"
}
}

15 changes: 15 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

44 changes: 33 additions & 11 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,23 +3,45 @@
"displayName": "ose language highlight",
"description": "syntax highlight for Object Sense Language",
"version": "0.0.1",
"publisher": "shezw",
"icon": "assets/logo.png",
"repository": {
"type": "github",
"url": "https://github.com/shezw/ose-highlight"
},
"author": {
"name": "shezw",
"email": "[email protected]",
"url": "https://shezw.com"
},
"engines": {
"vscode": "^1.87.0"
},
"categories": [
"Programming Languages"
],
"contributes": {
"languages": [{
"id": "ose",
"aliases": ["ObjectSense", "ose"],
"extensions": [".ose"],
"configuration": "./language-configuration.json"
}],
"grammars": [{
"language": "ose",
"scopeName": "",
"path": "./syntaxes/ose.tmLanguage.json"
}]
"languages": [
{
"id": "ose",
"aliases": [
"ObjectSense",
"ose"
],
"extensions": [
".ose"
],
"configuration": "./language-configuration.json"
}
],
"grammars": [
{
"language": "ose",
"scopeName": "source.ose",
"path": "./syntaxes/ose.tmLanguage.json"
}
]
},
"dependencies": {
}
}
Loading

0 comments on commit d4f1a32

Please sign in to comment.