Skip to content

Commit

Permalink
fixed calc
Browse files Browse the repository at this point in the history
mIRC A commands
fixed minimist
  • Loading branch information
Kedyn committed Apr 16, 2020
1 parent c790375 commit 5e3aa60
Show file tree
Hide file tree
Showing 5 changed files with 74 additions and 20 deletions.
17 changes: 11 additions & 6 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,17 @@ to structure this file.

## [Released]

### [v0.3.0] 4/16/2020

#### Added

- mIRC "A" commands snippets
- on char event to the grammar file

#### Changed

- Fixed calc identifier

### [v0.2.2] 3/24/2020 (Preview)

#### Added
Expand Down Expand Up @@ -54,12 +65,6 @@ to structure this file.

## [Unreleased]

### [v0.3.0]

#### Added

- Commands snippets

### [v0.2.3] 3/26/2020

#### Added
Expand Down
10 changes: 7 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,16 @@ This is a Visual Studio Code extension that adds support for mIRC Scripting Lang
- AdiIRC
- Snippets
- Alias constructors (constants, commands, identifiers, and command and identifier)
- Built-in commands
- Built-in identifiers
- Built-in events
- Built-in commands (WIP)
- Built-in identifiers (WIP)
- Built-in events (WIP)
- Miscellaneous
- Error reporting (WIP)

## Contributing

All contributions are welcome.

## Acknowledgements

The grammar was built based on
Expand Down
25 changes: 21 additions & 4 deletions package-lock.json

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

31 changes: 28 additions & 3 deletions snippets/commands.json
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@
},
"aop": {
"prefix": "cmd:aop",
"body": "aop ${1:-rw} ${2|on,off,nick,address|} ${3:#channel1${4:,#channel2${5:,...}}} ${6:type} ${7:network}",
"body": "aop ${1:-lrw} ${2|on,off,nick,address|} ${3:#channel1${4:,#channel2${5:,...}}} ${6:type} ${7:network}",
"description": [
"Used to add or remove users to your auto-op list.",
"",
Expand All @@ -87,7 +87,7 @@
},
"auser": {
"prefix": "cmd:auser",
"body": "auser ${1:-a} ${2:levels} ${3:nick|address} ${4:info}",
"body": "auser ${1:-a} ${2:levels} ${3:|nick,address|} ${4:info}",
"description": "This adds the specified nick/address exactly as it is given to the users list with the specified levels. If you specify [-a], then if the user already exists, the specified levels are added to the current levels the user has. Remember, if the first level is not preceded by an equal sign then it is a general access level."
},
"autojoin": {
Expand All @@ -103,7 +103,7 @@
},
"avoice": {
"prefix": "cmd:avoice",
"body": "aop ${1:-rw} ${2|on,off,nick,address|} ${3:#channel1${4:,#channel2${5:,...}}} ${6:type} ${7:network}",
"body": "avoice ${1:-lrw} ${2|on,off,nick,address|} ${3:#channel1${4:,#channel2${5:,...}}} ${6:type} ${7:network}",
"description": [
"Used to add or remove users to your auto-voice list.",
"",
Expand All @@ -118,5 +118,30 @@
"prefix": "cmd:away",
"body": "away ${1:message}",
"description": "Leaves a message indicating that you are currently not paying attention to IRC. When someone sends you a message, they will automatically see your away message. Using `away` with no message marks you as no longer being away and removes your previous message."
},
"background": {
"prefix": "cmd:background",
"body": "background ${1:-abemsgdluhcfnrtpx} ${2:window} ${3:filename}",
"description": "TODO"
},
"ban": {
"prefix": "cmd:ban",
"body": "ban ${1:-kruNbeIq} ${2:#channel} ${3:|nickname,address|} ${4:type} ${5:kick message}",
"description": "TODO"
},
"bcopy": {
"prefix": "cmd:bcopy",
"body": "bcopy ${1:-zc} ${2:&binvar} ${3:N} ${4:&binvar} ${5:S} ${6:M}",
"description": "TODO"
},
"beep": {
"prefix": "cmd:beep",
"body": "beep ${1:number} ${2:delay}",
"description": "TODO"
},
"bindip": {
"prefix": "cmd:bindip",
"body": "bindip ${1:|on,off|} ${2:ipaddress}",
"description": "TODO"
}
}
11 changes: 7 additions & 4 deletions syntaxes/msl.tmLanguage.json
Original file line number Diff line number Diff line change
Expand Up @@ -354,9 +354,12 @@
},
{
"name": "meta.arithmetic.msl",
"begin": "(<=\\()",
"end": "(?<=\\))",
"begin": "\\(",
"end": "\\)",
"patterns": [
{
"include": "#parameters"
},
{
"include": "#calc_content"
}
Expand Down Expand Up @@ -678,9 +681,9 @@
]
},
{
"comment": "Matches events: keydown keyup",
"comment": "Matches events: keydown keyup char",
"name": "meta.event.code.msl",
"begin": "^(?i)(on\\x20+(?:me:)?[^:\\s]+:key(?:down|up):(?:\\*|@[^:]*):(?:\\*|\\d+(?:,\\d+)*):)\\s*",
"begin": "^(?i)(on\\x20+(?:me:)?[^:\\s]+:(?:key(?:down|up)|char):(?:\\*|@[^:]*):(?:\\*|\\d+(?:,\\d+)*):)\\s*",
"beginCaptures": {
"1": {
"name": "entity.name.type.event.msl"
Expand Down

0 comments on commit 5e3aa60

Please sign in to comment.