Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
heterophyllus committed May 12, 2020
1 parent 14286da commit fc5819a
Show file tree
Hide file tree
Showing 7 changed files with 61 additions and 42 deletions.
7 changes: 5 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,15 @@

All notable changes to the "vscode-codev" extension will be documented in this file.

## [0.2.1]
- Update snippets and some keywords
- Simplify display name

## [0.2.0]
- Add snippets

## [0.1.2]
- Revised README etc.

## [0.1.1]

- Initial release
- Initial release
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
# CodeV Macro-plus language support for Visual Studio Code

This extension adds syntax highlighting for [CodeV](http://optics.synopsys.com/codev/) Macro-plus scripts.
This extension adds syntax highlighting and snippets for [Synopsys CODE V](http://optics.synopsys.com/codev/) Macro-plus scripts.

## Screenshot
![syntax](images/syntax.png)

## Changelog
Read the CHANGLELOG to know what has changed over the last few versions of this extension.
Read the [CHANGELOG](CHANGELOG.md) to know what has changed over the last few versions of this extension.

## License
This extension is licensed under MIT license. See [LICENSE](LICENSE) file for details.
Expand Down
8 changes: 5 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
{
"name": "vscode-codev",
"displayName": "CodeV Macro-plus language support",
"displayName": "CodeV",
"description": "CodeV Macro-plus language support for Visual Studio Code",
"publisher": "heterophyllus",
"version": "0.3.0",
"version": "0.2.1",
"engines": {
"vscode": "^1.41.0"
},
Expand All @@ -26,8 +26,10 @@
{
"id": "codev",
"aliases": [
"codev",
"CodeV",
"CODEV"
"CODEV",
"CODE V"
],
"extensions": [
"seq",
Expand Down
41 changes: 36 additions & 5 deletions snippets/codev.json
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,11 @@
"body":"MODF(${1:expr1},${2:expr2})",
"description": "Remainder of ${1:expr1} by ${2:expr2}"
},
"RANDF":{
"prefix": "RANDF",
"body":"RANDF",
"description": "Return random value [0..1)"
},
"ROUNDF":{
"prefix": "ROUNDF",
"body":"ROUNDF(${1:expr1})",
Expand Down Expand Up @@ -163,6 +168,16 @@
"body":"POLGRID(${1:zoom},${2:wave},${3:field},${4:aper_check},${5:num_rays},${6:input_arr},${7:output_arr})",
"description":"Trace grid of rays and return the polarization property at the image surface"
},
"PSF_1FLD":{
"prefix":"PSF_1FLD",
"body":"PSF_1FLD(${1:zoom},${2:field},${3:wave},${4:TGR}, ${5:PGR},${6:NRD},${7:GRI},${8:PRO},${9:XSC},${10:PHA},${11:norm},${12:THR},${13:output_array})",
"description":"Compute point spread function"
},
"PSF_DATA_1FLD":{
"prefix":"PSF_DATA_1FLD",
"body":"PSF_DATA_1FLD(${1:zoom},${2:field},${3:wave},${4:TGR}, ${5:PGR},${6:NRD},${7:GRI},${8:PRO},${9:XSC},${10:PHA},${11:norm},${12:THR},${13:output_array},${14:data_array})",
"description":"Compute point spread function with intensity of each pixel"
},
"RAYPOL":{
"prefix":"RAYPOL",
"body":"RAYPOL(${1:zoom},${2:wave},${3:field},${4:aper_check},${5:num_rays},${6:input_arr},${7:output_arr})",
Expand Down Expand Up @@ -223,11 +238,6 @@
"body":"SURFSAGD(${1:surface},${2:zoom},${3:curvature},${4:x_array_input},${5:y_array_input},${6:output_array})",
"description":"Compute variance of the sag difference from the input curvature for specified points"
},
"SVD":{
"prefix":"SVD",
"body":"SVD(${1:A},${2:rows},${3:cols}.${4:U},${5:V},${6:S})",
"description":"Singular value decomposition"
},
"TRA_1FLD":{
"prefix":"TRA_1FLD",
"body":"TRA_1FLD(${1:zoom},${2:x_fld},${3:y_fld},${4:NRD},${5:geo_or_stoke},${6:grid_scale_fact},${7:pol_input},${8:output_array})",
Expand Down Expand Up @@ -608,6 +618,11 @@
"body":"STDEV(${1:array},${2:num_vals})",
"description":"Compute standard deviation of the array"
},
"SVD":{
"prefix":"SVD",
"body":"SVD(${1:A},${2:rows},${3:cols}.${4:U},${5:V},${6:S})",
"description":"Singular value decomposition"
},
"SUMF":{
"prefix":"SUMF",
"body":"SUMF(${1:array},${2:num_vals})",
Expand All @@ -621,6 +636,16 @@
"body":"CONCAT(${1:string_expr1},${2:string_expr2})",
"description":"Concatenate strings"
},
"FIND_STR_ARR":{
"prefix":"FIND_STR_ARR",
"body":"FIND_STR_ARR(${1:string},${2:string_array_name})",
"description":"Return the first position where the specified string is found"
},
"JOIN":{
"prefix":"JOIN",
"body":"JOIN(${1:string_array_name},${2:separator_string},${3:string_array_element},${4:num of strings})",
"description":"Concatenates the strings in the array into a single string with the specified delimiter"
},
"LENSTR":{
"prefix":"LENSTR",
"body":"LENSTR(${1:string_expr})",
Expand Down Expand Up @@ -666,11 +691,15 @@
"body":"UPCASE(${1:string_expr})",
"description":"Convert to upper cases"
},


"EOFILE":{
"prefix":"EOFILE",
"body":"EOFILE",
"description":"Return true when EOF is detected"
},


"CVERROR":{
"prefix":"CVERROR",
"body":"CVERROR(${1:error_msg},${2:cont_line})",
Expand All @@ -696,6 +725,8 @@
"body":"INPARALLEL",
"description":"Indicates whether the calling Macro-PLUS codeis in a parallel region or in a serial region"
},


"ISFCT":{
"prefix":"ISFCT",
"body":"ISFCT(${1:string_expr})",
Expand Down
14 changes: 13 additions & 1 deletion syntaxes/codev.tmLanguage.json
Original file line number Diff line number Diff line change
Expand Up @@ -417,7 +417,19 @@
}
},
{
"comment": "keywords in one letter",
"comment":"Worksheet buffuer",
"match":"(^|;|\\(|\\s)((?i)BUF)(\\.)((?i)(B|COL|EMP|FMT|FND|FST|I|J|LEN|LST|MXJ|NUM|ON|STR|TXT|TYP))\\b",
"captures":{
"2":{
"name":"keyword.language.other.codev"
},
"4":{
"name":"keyword.language.other.codev"
}
}
},
{
"comment": "keywords within one letter",
"patterns":[
{
"comment":"A-D as keyword (aspherical coef)",
Expand Down
29 changes: 0 additions & 29 deletions vsc-extension-quickstart.md

This file was deleted.

Binary file removed vscode-codev-0.1.0.vsix
Binary file not shown.

0 comments on commit fc5819a

Please sign in to comment.