Skip to content

Commit a68a988

Browse files
committed
[pre-release] v3.3.0-beta-1
- 5 new themes added - Minor fix for updated semantic token
1 parent 2fa052d commit a68a988

24 files changed

+25772
-34
lines changed

CHANGELOG.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,14 @@
11
# Change Log
22

3+
#### **3.3.0**
4+
5+
*18.02.2024 **Update***
6+
- Integrated with PineScript Color Themes extensions.
7+
- Hover popup fixed.
8+
- Grammars fixed.
9+
10+
---
11+
312
#### **3.2.3**
413

514
*27.12.2023 **Update***

LICENSE.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
The MIT License (MIT)
22

3-
Copyright (c) 2015-2018 JohnPapa.net, LLC
3+
Copyright (c) 2023-2024 salbert.g, LLC
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
66

README.md

Lines changed: 27 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@
44
## Language support for Pine Script V5 with Syntax Highlighting & Snippets
55

66
## Release Notes
7-
#### **3.2.3**
7+
#### **3.3.0**
88

9-
*27.12.2023 **Update***
10-
- Snippets for built-in variables, functions and constants updated to Pinescript release December 2023.
9+
*18.02.2024 **Update***
10+
- Integrated with PineScript Color Themes extension.
1111
- Hover popup fixed.
1212
- Grammars fixed.
1313

@@ -23,14 +23,6 @@ PineScript is a domain-specific scripting language developed by TradingView. It
2323

2424
---
2525

26-
### PineScript Color Themes
27-
PineScript Helper extension is best suited for use with [**PineScript Color Themes**](https://marketplace.visualstudio.com/items?itemName=salbert11.pinescript-color-themes).
28-
**PineScript Color Themes** provides a collection of editor themes tailored for PineScript development, offering a visually pleasing environment for writing PineScript code.
29-
30-
*Note: If you prefer a different theme, you are free to use any other themes of your choice. PineScript Helper is compatible with most themes.*
31-
32-
---
33-
3426
## Features
3527
- **Syntax Highlighting** : The extension provides syntax highlighting for PineScript V5, making your code more readable and easier to navigate.
3628

@@ -50,6 +42,29 @@ PineScript Helper extension is best suited for use with [**PineScript Color Them
5042

5143
---
5244

45+
- ***PineScript Color Themes** : The extension provides a collection of editor themes tailored for PineScript development, offering a visually pleasing environment for writing PineScript code.
46+
- Pine Theme Original Dark
47+
- Pine Theme Dark Pro
48+
- Pine Theme Dark Pro Bold
49+
- Pine Theme Monokai Dark
50+
- Pine Theme Monokai Dark Bold
51+
- Pine Theme Blue
52+
- Pine Theme Blue Bold
53+
- Pine Theme Dark Low Contrast
54+
- Pine Theme Dark Low Contrast Bold
55+
- Pine Theme Grey
56+
- Pine Theme Grey Bold
57+
- Pine Theme Grey Candy
58+
- Pine Theme Light
59+
- Pine Theme Light Bold
60+
61+
*Note: If you prefer a different theme, you are free to use any other themes of your choice. PineScript Helper is compatible with most themes.*
62+
63+
![](https://github.com/salbert11/pinethemes/raw/pinescript-color-themes/images/pine-themes.gif?raw=true)
64+
65+
66+
---
67+
5368
## Installation
5469
### Method 1: Install from VS Code Command Palette
5570

@@ -135,4 +150,4 @@ This extension is released under the [MIT License](./LICENSE.md).
135150

136151
---
137152

138-
*Version 3.2.3*
153+
*Version 3.3.0*

images/pine-themes.gif

12.7 MB
Loading

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 75 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"icon": "images/pineicon.png",
66
"publisher": "salbert11",
77
"license": "MIT",
8-
"version": "3.2.4-beta-8",
8+
"version": "3.3.0-beta-1",
99
"engines": {
1010
"vscode": "^1.62.0"
1111
},
@@ -14,7 +14,8 @@
1414
},
1515
"categories": [
1616
"Programming Languages",
17-
"Snippets"
17+
"Snippets",
18+
"Themes"
1819
],
1920
"keywords": [
2021
"pine",
@@ -119,6 +120,78 @@
119120
"scopeName": "source.ps",
120121
"path": "./syntaxes/ps.tmLanguage.json"
121122
}
123+
],
124+
"themes": [
125+
{
126+
"label": "Pine Theme Original Dark",
127+
"uiTheme": "vs-dark",
128+
"path": "./themes/pine-original-dark.json"
129+
},
130+
{
131+
"label": "Pine Theme Dark Pro Bold",
132+
"uiTheme": "vs-dark",
133+
"path": "./themes/pine-dark-pro-bold.json"
134+
},
135+
{
136+
"label": "Pine Theme Dark Pro",
137+
"uiTheme": "vs-dark",
138+
"path": "./themes/pine-dark-pro.json"
139+
},
140+
{
141+
"label": "Pine Theme Monokai Dark Bold",
142+
"uiTheme": "vs-dark",
143+
"path": "./themes/pine-monokai-dark-bold.json"
144+
},
145+
{
146+
"label": "Pine Theme Monokai Dark",
147+
"uiTheme": "vs-dark",
148+
"path": "./themes/pine-monokai-dark.json"
149+
},
150+
{
151+
"label": "Pine Theme Blue Bold",
152+
"uiTheme": "vs-dark",
153+
"path": "./themes/pine-blue-bold.json"
154+
},
155+
{
156+
"label": "Pine Theme Blue",
157+
"uiTheme": "vs-dark",
158+
"path": "./themes/pine-blue.json"
159+
},
160+
{
161+
"label": "Pine Theme Dark Low Contrast Bold",
162+
"uiTheme": "vs-dark",
163+
"path": "./themes/pine-editor-dark-bold.json"
164+
},
165+
{
166+
"label": "Pine Theme Dark Low Contrast",
167+
"uiTheme": "vs-dark",
168+
"path": "./themes/pine-editor-dark.json"
169+
},
170+
{
171+
"label": "Pine Theme Light Bold",
172+
"uiTheme": "vs",
173+
"path": "./themes/pine-editor-light-bold.json"
174+
},
175+
{
176+
"label": "Pine Theme Light",
177+
"uiTheme": "vs",
178+
"path": "./themes/pine-editor-light.json"
179+
},
180+
{
181+
"label": "Pine Theme Grey Bold",
182+
"uiTheme": "vs-dark",
183+
"path": "./themes/pine-grey-bold.json"
184+
},
185+
{
186+
"label": "Pine Theme Grey Candy",
187+
"uiTheme": "vs-dark",
188+
"path": "./themes/pine-grey-fun.json"
189+
},
190+
{
191+
"label": "Pine Theme Grey",
192+
"uiTheme": "vs-dark",
193+
"path": "./themes/pine-grey.json"
194+
}
122195
]
123196
},
124197
"scripts": {

src/extension.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ function testComment(document: vscode.TextDocument, position: vscode.Position, h
4545
}
4646

4747
function testString(document: vscode.TextDocument, position: vscode.Position, hoverLineText: string){
48-
let testStringPattern = new RegExp("(?:[^\\s\\w\\)\\}\\.\\-\\~\\`]\\s*\".*?\"\\s*(?:[^\\s\\w\\(\\{\\-\\~\\`]|$))|(?:[^\\s\\w\\)\\}\\.\\-\\~\\`]\\s*\'.*?\'\\s*(?:[^\\s\\w\\(\\{\\-\\~\\`]|$))");
48+
let testStringPattern = new RegExp("(?:(?:^|[^\\s\\w\\)\\}\\.\\-\\~\\`\\\\])\\s*\".*?\"\\s*(?:[^\\s\\w\\(\\{\\-\\~\\`\\\\]|$))|(?:(?:^|[^\\s\\w\\)\\}\\.\\-\\~\\`\\\\])\\s*'.*?'\\s*(?:[^\\s\\w\\(\\{\\-\\~\\`\\\\]|$))");
4949
if (testStringPattern.test(hoverLineText)){
5050
let hoverRange = document.getWordRangeAtPosition(position, testStringPattern);
5151
if (hoverRange){

0 commit comments

Comments
 (0)