Skip to content

Feature/general improvements #244

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 45 commits into from
Oct 20, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
45 commits
Select commit Hold shift + click to select a range
1ed6c2f
Updated CHANGELOG for v2.2.2
gnikit Jun 30, 2021
10d0cd3
Incremented package version to 2.2.2
gnikit Jun 30, 2021
56f0072
Minor aesthetic improvements to CHANGELOG
gnikit Jun 30, 2021
04a317b
Adds OpenACC unit test
gnikit Jun 30, 2021
9aaadd1
Updated tasks and launch files
gnikit Jun 30, 2021
b7296b3
Fixes Remove unused packages #243
gnikit Jul 1, 2021
d448d10
Updated README badges
gnikit Jul 2, 2021
75a7ba4
Updated workflows to run on Ubuntu latest
gnikit Jul 2, 2021
4cd833b
Fix overzealous OpenMP regex.
gnikit Sep 16, 2021
24ba48c
Updating changelog.md
gnikit Sep 16, 2021
aa8ade4
New minor release
gnikit Sep 16, 2021
b64402a
Housekeeping
gnikit Sep 19, 2021
2b11a66
Added info to package.json
gnikit Oct 1, 2021
38caef9
Fixes in-house documentaiton hover
gnikit Oct 1, 2021
bc7a38d
Now the deocumentation displays correctly
gnikit Oct 1, 2021
d4b6cad
Formatting .json doc files with prettier
gnikit Oct 1, 2021
b6e840f
Updated README.md
gnikit Oct 1, 2021
f0e6af4
Adds VS marketplace automated release
gnikit Oct 2, 2021
83aa34f
Further improvements to the hover documentation
gnikit Oct 2, 2021
2adaa8d
further fixes for internal documentation
gnikit Oct 3, 2021
f1c2aa2
Adds autoclosing for strings
gnikit Oct 3, 2021
23e6437
Updates Fortran extensino and adds .pFUnit support
gnikit Oct 3, 2021
25eb5bb
Updates CHANGELOG.md
gnikit Oct 3, 2021
6537b38
Fixes preprocessor syntax highlighting
gnikit Oct 6, 2021
b5342a5
Preprocessor assignment i.e. = is not a thing
gnikit Oct 6, 2021
1086fe5
Preprocessor operator fixes
gnikit Oct 7, 2021
d214d53
Fixes Erroneous syntax highlighting, when argument is called "functio…
gnikit Oct 11, 2021
064bd20
Adds unittest for #207 and updates CHANGELOG
gnikit Oct 11, 2021
7f6706a
Adds syntax highlighting support for fypp
gnikit Oct 11, 2021
06af154
Add MIT license badge back to README
gnikit Oct 11, 2021
5bfbbe6
Adds names specific to individual scopes
gnikit Oct 11, 2021
a8f33f9
Fixes Erroneous syntax highlighting of if construct with tags #204
gnikit Oct 11, 2021
e9763d3
Updated CHANGELOG.md
gnikit Oct 11, 2021
5a6039d
Fixes STOP named_string #172
gnikit Oct 11, 2021
920ea64
Comments are correctly highlighted for type,...
gnikit Oct 12, 2021
801c7f3
Add syntax test for fixed form fortran
gnikit Oct 12, 2021
b221114
Switches to @types/vscode & @vscode/test-electron
gnikit Oct 15, 2021
3a35241
Updated changelog
gnikit Oct 15, 2021
595f10d
Updated yarn.lock
gnikit Oct 15, 2021
fd6c177
Increments version to 2.4.0
gnikit Oct 15, 2021
37cdec2
Updated tasks.json and launch.json
gnikit Oct 18, 2021
dd94666
Updated names of scopes to contain fortran
gnikit Oct 19, 2021
3d60be6
Fixes normal labeled construct end statements
gnikit Oct 19, 2021
f20856e
Adds error highlighting for else labeled
gnikit Oct 19, 2021
901bcb3
Upgraded package.json grammar update
gnikit Oct 19, 2021
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
3 changes: 2 additions & 1 deletion .github/workflows/main.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
name: Build and Test syntax
on: [push]
jobs:
grammar:
runs-on: ubuntu-20.04
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [12.x]
Expand Down
24 changes: 24 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
on:
push:
tags:
- '*'

name: Deploy Extension
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: 12
- run: npm ci
# - name: Publish to Open VSX Registry
# uses: HaaLeo/publish-vscode-extension@v0
# with:
# pat: ${{ secrets.OPEN_VSX_TOKEN }}
- name: Publish to Visual Studio Marketplace
uses: HaaLeo/publish-vscode-extension@v0
with:
pat: ${{ secrets.VS_MARKETPLACE_TOKEN }}
registryUrl: https://marketplace.visualstudio.com
23 changes: 8 additions & 15 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
@@ -1,41 +1,34 @@
// A launch configuration that compiles the extension and then opens it inside a new window
{
"version": "0.1.0",
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"name": "Launch Extension",
"type": "extensionHost",
"request": "launch",
"runtimeExecutable": "${execPath}",
"args": [
"--extensionDevelopmentPath=${workspaceFolder}"
],
"stopOnEntry": false,
"sourceMaps": true,
"outFiles": [
"${workspaceFolder}/out/src/**/*.js"
],
"preLaunchTask": "npm"
"preLaunchTask": "npm: watch-dev",
},
{
"name": "Launch Tests",
"type": "extensionHost",
"request": "launch",
"runtimeExecutable": "${execPath}",
"env": {
"CODE_TESTS_WORKSPACE": "./"
},
"args": [
"test/resources/sample.f90",
"--disable-extensions",
"--extensionDevelopmentPath=${workspaceFolder}",
"--extensionTestsPath=${workspaceFolder}/out/test"
],
"stopOnEntry": false,
"sourceMaps": true,
"outFiles": [
"${workspaceFolder}/out/test/**/*.js"
]
}
],
"preLaunchTask": "npm: pretest setup",
},
]
}
70 changes: 39 additions & 31 deletions .vscode/tasks.json
Original file line number Diff line number Diff line change
@@ -1,40 +1,48 @@
// Available variables which can be used inside of strings.
// ${workspaceRoot}: the root folder of the team
// ${file}: the current opened file
// ${fileBasename}: the current opened file's basename
// ${fileDirname}: the current opened file's dirname
// ${fileExtname}: the current opened file's extension
// ${cwd}: the current working directory of the spawned process

// A task runner that calls a custom npm script that compiles the extension.
{
"version": "2.0.0",

// we want to run npm
"command": "npm",

// we run the custom script "compile" as defined in package.json
"args": ["run", "compile", "--loglevel", "silent"],

// The tsc compiler is started in watching mode
"isBackground": true,

// use the standard tsc in watch mode problem matcher to find compile problems in the output.
"problemMatcher": "$tsc-watch",
"tasks": [
{
"label": "npm",
"type": "shell",
"command": "npm",
"args": [
"run",
"compile",
"--loglevel",
"silent"
],
"label": "npm: watch-dev",
"type": "npm",
"script": "watch-dev",
"group": {
"kind": "build",
"isDefault": true
},
"isBackground": true,
"problemMatcher": "$tsc-watch",
"group": "build"
"detail": "tsc -watch -p tsconfig.json"
},
{
"label": "npm: compile-dev",
"type": "npm",
"script": "compile-dev",
"group": "build",
"problemMatcher": "$tsc",
"detail": "tsc -p tsconfig.json"
},
{
"label": "npm: pretest",
"type": "npm",
"script": "pretest",
"group": "test",
"problemMatcher": "$tsc",
"detail": "tsc -p tsconfig.test.json"
},
{
"label": "npm: pretest setup",
"type": "shell",
"dependsOn": [
"npm: compile-dev",
"npm: pretest"
],
"dependsOrder": "sequence",
"group": {
"kind": "test",
"isDefault": true
},
"detail": "setup for test launch"

}
]
}
30 changes: 0 additions & 30 deletions .vscode/tasks.json.old

This file was deleted.

80 changes: 76 additions & 4 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,43 @@ and this project adheres to [Semantic Versioning](http://semver.org/).

## [Unreleased]

## [2.4.0]

### Changed

- Changes the syntax highlighting of preprocessor macros to match that of C++
- Changes npm `vscode` module to `@types/vscode` and `@vscode/test-electron`
([#263](https://github.com/krvajal/vscode-fortran-support/issues/263))

### Fixed

- Fixes OpenACC syntax highlighting not triggering
- Fixes internal hover documentation display
([#205](https://github.com/krvajal/vscode-fortran-support/issues/205))
- Fixes preprocessor syntax highlighting with line continuations
([#248](https://github.com/krvajal/vscode-fortran-support/issues/248))
- Fixes preprocessor syntax highlighting with derived type and conditionals
([#249](https://github.com/krvajal/vscode-fortran-support/issues/249))
- Fixes the general preprocessor syntax highlighting and adds testing
- Fixes using function/subroutine as parameter in functions/subroutines
([#207](https://github.com/krvajal/vscode-fortran-support/issues/207))
- Fixes labelled conditionals erroneous highlighting
([#204](https://github.com/krvajal/vscode-fortran-support/issues/204))
- Fixes labelled conditionals erroneous highlighting when followed by whitespace
([#205](https://github.com/krvajal/vscode-fortran-support/issues/205))
- Fixes labelled `stop` conditions
([#172](https://github.com/krvajal/vscode-fortran-support/issues/172))
- Fixes incorrect comment capture for type, abstract|extends types
([#262](https://github.com/krvajal/vscode-fortran-support/issues/262))

### Added

- Adds support for .f18 and .F18 file extensions
([#252](https://github.com/krvajal/vscode-fortran-support/pull/252))
- Adds workflow for automatic publishing to VS Marketplace
([#237](https://github.com/krvajal/vscode-fortran-support/issues/237))
- Adds basic support for pFUnit (.pf) highlighting
([#185](https://github.com/krvajal/vscode-fortran-support/issues/185))

## [2.3.0]

Expand All @@ -28,7 +61,25 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
### Added

- Added syntax highlight support for OpenACC
([224](https://github.com/krvajal/vscode-fortran-support/pull/224))
([#224](https://github.com/krvajal/vscode-fortran-support/pull/224))

## [2.2.2] - 2020-12-11

### Fixed

- Fixed fixed-form tab character at start syntax highlighting
([#191](https://github.com/krvajal/vscode-fortran-support/pull/191))
- Fixed `class` paranthesis erroneous syntax highlighting
([#196](https://github.com/krvajal/vscode-fortran-support/issues/196))
- Fixed multiline block interface syntax highlighting
([#202](https://github.com/krvajal/vscode-fortran-support/issues/202))

### Changed

- Updated `package.json`
([#192](https://github.com/krvajal/vscode-fortran-support/pull/192))
- Rewrote solution for `select` in variable name
([#203](https://github.com/krvajal/vscode-fortran-support/pull/203))

## [2.2.1] - 2020-04-11

Expand Down Expand Up @@ -92,7 +143,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
### Changed

- Changed default configuration of LanguageServer to `false`
- Update vscode minimal engine
- Update vscode minimal engine

## [2.0.0] - 2018-10-14

Expand Down Expand Up @@ -212,10 +263,31 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
### Added

- Show docs for intrinsic functions on hover
### Changed

### Changed

- Updated icon for the extension
- Fix bug on linter not working

## [Unreleased]
## [0.1.0]

- Initial release

[unreleased]: https://github.com/krvajal/vscode-fortran-support/compare/v2.4.0...HEAD
[2.4.0]: https://github.com/krvajal/vscode-fortran-support/compare/v2.3.0...v2.4.0
[2.3.0]: https://github.com/krvajal/vscode-fortran-support/compare/v2.2.2...v2.3.0
[2.2.2]: https://github.com/krvajal/vscode-fortran-support/compare/2.2.1...v2.2.1
[2.2.1]: https://github.com/krvajal/vscode-fortran-support/compare/2.2.0...v2.2.1
[2.2.0]: https://github.com/krvajal/vscode-fortran-support/compare/2.1.0...v2.2.0
[2.1.0]: https://github.com/krvajal/vscode-fortran-support/compare/2.0.2...2.1.0
[2.0.2]: https://github.com/krvajal/vscode-fortran-support/compare/2.0.0...2.0.2
[2.0.0]: https://github.com/krvajal/vscode-fortran-support/compare/v1.3.0...v2.0.0
[1.3.0]: https://github.com/krvajal/vscode-fortran-support/compare/v1.2.0...v1.3.0
[1.2.0]: https://github.com/krvajal/vscode-fortran-support/compare/v1.1.0...v1.2.0
[1.1.0]: https://github.com/krvajal/vscode-fortran-support/compare/v1.0.0...v1.1.0
[1.0.0]: https://github.com/krvajal/vscode-fortran-support/compare/v0.6.3...v1.0.0
[0.6.3]: https://github.com/krvajal/vscode-fortran-support/compare/v0.6.1...v0.6.3
[0.6.1]: https://github.com/krvajal/vscode-fortran-support/compare/v0.6.0...v0.6.1
[0.6.0]: https://github.com/krvajal/vscode-fortran-support/compare/v0.4.5...v0.6.0
[0.4.5]: https://github.com/krvajal/vscode-fortran-support/compare/v0.4.4...v0.4.5
[0.4.4]: https://github.com/krvajal/vscode-fortran-support/compare/tag/v0.4.4
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
# Modern Fortran language support for VSCode

[![Build Status](https://travis-ci.org/krvajal/vscode-fortran-support.svg?branch=master)](https://travis-ci.org/krvajal/vscode-fortran-support)
[![codecov](https://codecov.io/gh/krvajal/vscode-fortran-support/branch/master/graph/badge.svg)](https://codecov.io/gh/krvajal/vscode-fortran-support)
[![MIT License](https://img.shields.io/npm/l/stack-overflow-copy-paste.svg?style=flat-square)](http://opensource.org/licenses/MIT)
[![GitHub Actions](https://github.com/krvajal/vscode-fortran-support/actions/workflows/main.yaml/badge.svg)](https://github.com/krvajal/vscode-fortran-support/actions)
[![Downloads](https://vsmarketplacebadge.apphb.com/downloads-short/krvajalm.linter-gfortran.svg)](https://marketplace.visualstudio.com/items?itemName=krvajalm.linter-gfortran)
[![Installs](https://vsmarketplacebadge.apphb.com/installs/krvajalm.linter-gfortran.svg)](https://marketplace.visualstudio.com/items?itemName=krvajalm.linter-gfortran)
[![GitHub release](https://img.shields.io/github/release/krvajal/vscode-fortran-support.svg)](https://GitHub.com/krvajal/vscode-fortran-support/releases/)
[![VS Marketplace](https://vsmarketplacebadge.apphb.com/version-short/krvajalm.linter-gfortran.svg)](https://marketplace.visualstudio.com/items?itemName=krvajalm.linter-gfortran)
[![MIT License](https://img.shields.io/npm/l/stack-overflow-copy-paste.svg?)](http://opensource.org/licenses/MIT)

> This extension provides support for the Fortran programming language. It includes syntax highlighting, debugging, code snippets and a linting based on `gfortran`. You can download the Visual Studio Code editor from [here](https://code.visualstudio.com/download).

Expand Down
18 changes: 17 additions & 1 deletion language-configuration.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,23 @@
{
"open": "(/",
"close": "/"
}
},
{
"open": "'",
"close": "'",
"notIn": [
"string",
"comment"
]
},
{
"open": "\"",
"close": "\"",
"notIn": [
"string",
"comment"
]
},
],
"surroundingPairs": [
[
Expand Down
Loading