Skip to content
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

kacperek18 #635

Open
wants to merge 92 commits into
base: 620-incorrectly-tagged-default-implementation-keyword-outside-of-type-definition
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
92 commits
Select commit Hold shift + click to select a range
c350f92
-
jeff-hykin Dec 10, 2022
8d5651f
-
jeff-hykin Dec 11, 2022
edb7560
-
jeff-hykin Dec 27, 2022
6d25eee
-
jeff-hykin Dec 28, 2022
5163eda
-
jeff-hykin Jan 2, 2023
d654ea1
Merge branch 'master' into python
jeff-hykin Jan 2, 2023
96b2d41
Merge branch 'python' into node
jeff-hykin Jan 2, 2023
628f97e
Merge branch 'node' into npm_package
jeff-hykin Jan 2, 2023
398c141
Merge branch 'master' into ruby
jeff-hykin Jan 2, 2023
7510a0a
Merge branch 'npm_package' into textmate
jeff-hykin Jan 2, 2023
26882b2
Merge branch 'ruby' into textmate
jeff-hykin Jan 2, 2023
eb8af8a
-
jeff-hykin Jan 2, 2023
ef64ac9
Make suffix tags more consistent
j-cortial Jan 4, 2023
2bc5570
Merge pull request #622 from j-cortial/cpp/fix/#610
jeff-hykin Jan 15, 2023
e3f51cc
version bump
jeff-hykin Jan 15, 2023
b34d39a
-
jeff-hykin Jan 15, 2023
562ec9a
fix 621
jeff-hykin Jan 31, 2023
60bbc17
-
jeff-hykin Feb 3, 2023
e40f158
formatting
jeff-hykin Feb 3, 2023
654b438
-
jeff-hykin Feb 3, 2023
2a3f8ba
formatting
jeff-hykin Feb 3, 2023
190c42b
remove redundant
jeff-hykin Feb 3, 2023
853dd80
-
jeff-hykin Feb 3, 2023
0d818c7
-
jeff-hykin Feb 6, 2023
7aef15d
optimize out about 18,000 chars
jeff-hykin Feb 6, 2023
461cfce
-
jeff-hykin Feb 7, 2023
b63c09f
-
jeff-hykin Feb 7, 2023
af75efd
fix/improve installer_helper
jeff-hykin Feb 7, 2023
03871fc
Merge branch 'master' into python
jeff-hykin Feb 7, 2023
9365f1a
Merge branch 'python' into node
jeff-hykin Feb 7, 2023
0cc0bf4
Merge branch 'node' into npm_package
jeff-hykin Feb 7, 2023
985d1e9
Merge branch 'master' into ruby
jeff-hykin Feb 7, 2023
3d73386
Merge branch 'npm_package' into textmate
jeff-hykin Feb 7, 2023
0d41bcf
Merge branch 'ruby' into textmate
jeff-hykin Feb 7, 2023
614dd22
-
jeff-hykin Feb 7, 2023
c17a1e1
-
jeff-hykin Feb 7, 2023
873c5d7
Merge branch 'master' into python
jeff-hykin Feb 7, 2023
50d509f
Merge branch 'python' into node
jeff-hykin Feb 7, 2023
21d648b
Merge branch 'node' into npm_package
jeff-hykin Feb 7, 2023
dda8543
Merge branch 'master' into ruby
jeff-hykin Feb 7, 2023
14dad08
Merge branch 'npm_package' into textmate
jeff-hykin Feb 7, 2023
472d4bf
Merge branch 'ruby' into textmate
jeff-hykin Feb 7, 2023
1e72d4e
-
jeff-hykin Feb 7, 2023
8650516
Merge branch 'master' into python
jeff-hykin Feb 7, 2023
ebda372
Merge branch 'python' into node
jeff-hykin Feb 7, 2023
9beb030
Merge branch 'node' into npm_package
jeff-hykin Feb 7, 2023
c9044cd
Merge branch 'master' into ruby
jeff-hykin Feb 7, 2023
0d57010
Merge branch 'npm_package' into textmate
jeff-hykin Feb 7, 2023
7427228
Merge branch 'ruby' into textmate
jeff-hykin Feb 7, 2023
b159c5e
Merge branch 'textmate' of github.com:jeff-hykin/fornix
jeff-hykin Feb 7, 2023
f1d127a
slightly improve preprocessor #569
jeff-hykin Mar 13, 2023
9276ef6
-
jeff-hykin Mar 13, 2023
d632803
update documentation
jeff-hykin May 30, 2023
abb2cc4
fix operator overload edgecase
jeff-hykin Aug 9, 2023
4321d02
major improvement to type highlighting
jeff-hykin Aug 9, 2023
affcf5a
-
jeff-hykin Aug 9, 2023
401d7c2
fix #641
jeff-hykin Aug 9, 2023
8c056a1
improve typing further
jeff-hykin Aug 9, 2023
db4a681
-
jeff-hykin Aug 9, 2023
9f87ed9
-
jeff-hykin Nov 25, 2023
e918451
-
jeff-hykin Mar 14, 2024
172aa8a
fix #656
jeff-hykin Apr 16, 2024
a82ef61
fix #655
jeff-hykin Apr 16, 2024
0972e68
fix #653
jeff-hykin Apr 16, 2024
e646278
improved/reduced template false-positives, partial fix for #654
jeff-hykin Apr 16, 2024
14a87f4
fix #652
jeff-hykin Apr 16, 2024
4071c1b
version bump
jeff-hykin Apr 16, 2024
47e2807
fix
jeff-hykin Apr 16, 2024
1babbb7
improve raw strings
jeff-hykin Apr 16, 2024
c594a9d
-
jeff-hykin Apr 16, 2024
c2a3e40
disable SQL cause it causes too many problems
jeff-hykin Apr 16, 2024
2d7198b
remove SQL
jeff-hykin Apr 16, 2024
b8ac792
add test for #636
jeff-hykin Apr 16, 2024
7585a5c
Update README.md
jeff-hykin Apr 16, 2024
0bb1843
add support for commands/test outside of fornix
jeff-hykin Jul 4, 2024
683c944
Merge branch 'master' of github.com:jeff-hykin/better-cpp-syntax
jeff-hykin Jul 4, 2024
407d6fd
fix #527
jeff-hykin Jul 5, 2024
ef8b22c
bump
jeff-hykin Jul 5, 2024
be00901
fix #647
jeff-hykin Jul 5, 2024
422729a
-
jeff-hykin Jul 5, 2024
683e822
fix #646
jeff-hykin Jul 5, 2024
ec459bb
fix #638
jeff-hykin Jul 5, 2024
c48cb96
alternation is behaving weird so wrap some things for sanity sake
jeff-hykin Jul 11, 2024
01ca0d4
better support for initlizers and ranged assignment
jeff-hykin Jul 11, 2024
1092e46
tag unknown identifiers
jeff-hykin Jul 11, 2024
322a245
-
jeff-hykin Jul 11, 2024
9dda2fc
-
jeff-hykin Jul 11, 2024
28b373d
-
jeff-hykin Jul 11, 2024
780e597
fix convention for edgecase tags
jeff-hykin Jul 12, 2024
75d2c02
add a lot of variable case information
jeff-hykin Jul 12, 2024
23e25d8
-
jeff-hykin Jul 12, 2024
071dd6e
improve array assignment matching
jeff-hykin Jul 12, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ gem 'bundler'
gem 'deep_clone'
gem 'walk_up', ">=1.0.1"

gem 'ruby_grammar_builder', '1.1.8'
gem 'ruby_grammar_builder', '1.1.10'
4 changes: 2 additions & 2 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ GEM
remote: http://rubygems.org/
specs:
deep_clone (0.0.1)
ruby_grammar_builder (1.1.8)
ruby_grammar_builder (1.1.10)
deep_clone (~> 0.0.1, >= 0.0.1)
walk_up (1.0.1)

Expand All @@ -12,7 +12,7 @@ PLATFORMS
DEPENDENCIES
bundler
deep_clone
ruby_grammar_builder (= 1.1.8)
ruby_grammar_builder (= 1.1.10)
walk_up (>= 1.0.1)

BUNDLED WITH
Expand Down
695 changes: 674 additions & 21 deletions LICENSE

Large diffs are not rendered by default.

14 changes: 5 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,14 +1,6 @@
<p align="center">
<img height="90" alt="Screen Shot 2022-02-11 at 12 01 19 PM" src="https://user-images.githubusercontent.com/17692058/153645502-f106a481-faaf-450f-9f5e-10da3981d8dc.png">
</p>
<p align="center">
<a href="https://marketplace.visualstudio.com/items?itemName=jeff-hykin.better-cpp-syntax">
<img src="https://vsmarketplacebadge.apphb.com/downloads-short/jeff-hykin.better-cpp-syntax.svg?style=for-the-badge&colorA=5DDB61&colorB=4BC74F&label=DOWNLOADS" />
</a>
<a href="https://marketplace.visualstudio.com/items?itemName=jeff-hykin.better-cpp-syntax">
<img src="https://vsmarketplacebadge.apphb.com/rating-star/jeff-hykin.better-cpp-syntax.svg?style=for-the-badge&colorA=FBBD30&colorB=F2AA08" />
</a>
</p>

# Sponsors

Expand Down Expand Up @@ -49,13 +41,17 @@ NOTE: The default VS Code theme does not color much. Switch to the Dark+ theme (
- [Syntax Highlight Theme](https://marketplace.visualstudio.com/items?itemName=peaceshi.syntax-highlight)
- [Default Theme Enhanced](https://marketplace.visualstudio.com/items?itemName=ms-vscode.cpptools-themes)

## How do I use it?
## How do I use the extension?
Just install the VS Code extension and the changes will automatically be applied to all relevant files.
<br>Link: https://marketplace.visualstudio.com/items?itemName=jeff-hykin.better-cpp-syntax

# Comparison (Material Theme)
<img width="2794" alt="compare" src="https://user-images.githubusercontent.com/17692058/153653793-3685ffd5-cf96-43c3-a883-da79ba33d037.png">

## How do I use the grammar? (as an upstream for my non-vs code editor)

1. Watch the the "Major Changes" thread [here](https://github.com/jeff-hykin/better-cpp-syntax/issues/64) to know when I change licenses, the codebase structure, or just major highlighting changes.
2. I support non-VS Code usecases. E.g. yes, you are welcome to open issues [like this one](https://github.com/jeff-hykin/better-cpp-syntax/issues/653) that don't affect VS Code.

## What is different from atom/language-c?
It fixes:
Expand Down
2 changes: 1 addition & 1 deletion autogenerated/cpp.embedded.macro.tmLanguage.json

Large diffs are not rendered by default.

16,628 changes: 10,099 additions & 6,529 deletions autogenerated/cpp.tmLanguage.json

Large diffs are not rendered by default.

69 changes: 58 additions & 11 deletions autogenerated/cpp_scopes.txt
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ constant.numeric.octal.cpp
constant.other.placeholder
entity.name.function.call.cpp
entity.name.function.call.initializer.cpp
entity.name.function.call.upper-case.cpp
entity.name.function.constructor.cpp
entity.name.function.definition.cpp
entity.name.function.definition.special.constructor.cpp
Expand Down Expand Up @@ -132,13 +133,18 @@ keyword.other.default.function.cpp
keyword.other.delete.constructor.cpp
keyword.other.delete.destructor.cpp
keyword.other.delete.function.cpp
keyword.other.functionlike.cpp
keyword.other.namespace.alias.cpp
keyword.other.namespace.definition.cpp
keyword.other.namespace.directive.cpp
keyword.other.operator.overload.cpp
keyword.other.parameter.direction.$0.cpp
keyword.other.static_assert.cpp
keyword.other.requires.cpp
keyword.other.static-assert.cpp
keyword.other.suffix.literal.built-in.floating-point.cpp
keyword.other.suffix.literal.built-in.integer.cpp
keyword.other.suffix.literal.user-defined.character.cpp
keyword.other.suffix.literal.user-defined.integer.cpp
keyword.other.suffix.literal.user-defined.reserved.character.cpp
keyword.other.suffix.literal.user-defined.reserved.string.cpp
keyword.other.suffix.literal.user-defined.string.cpp
Expand All @@ -163,8 +169,11 @@ meta.arguments.operator.noexcept
meta.arguments.operator.sizeof
meta.arguments.operator.sizeof.variadic
meta.arguments.operator.typeid
meta.arguments.requires
meta.asm.cpp
meta.assignment.cpp
meta.banner.character.cpp
meta.binding.cpp
meta.block.class.cpp
meta.block.cpp
meta.block.enum.cpp
Expand All @@ -188,6 +197,7 @@ meta.bracket.square.access
meta.bracket.square.array.cpp
meta.conditional.case.cpp
meta.conditional.switch.cpp
meta.declaration.cpp
meta.declaration.namespace.alias.cpp
meta.declaration.namespace.alias.value.cpp
meta.declaration.type.alias.cpp
Expand Down Expand Up @@ -219,9 +229,11 @@ meta.head.struct.cpp
meta.head.switch.cpp
meta.head.union.cpp
meta.initialization.cpp
meta.initialization.parameter.cpp
meta.lambda.capture.cpp
meta.parameter.cpp
meta.parameter.initialization
meta.parens.control.for.cpp
meta.parens.cpp
meta.parens.preprocessor.conditional.cpp
meta.preprocessor.conditional
Expand All @@ -232,10 +244,9 @@ meta.preprocessor.line.cpp
meta.preprocessor.macro.cpp
meta.preprocessor.pragma.cpp
meta.preprocessor.undef.cpp
meta.qualified_type.cpp
meta.static_assert.message.cpp
meta.qualified-type.cpp
meta.static-assert.message.cpp
meta.string.quoted.double.raw.glsl.cpp
meta.string.quoted.double.raw.sql.cpp
meta.tail.class.cpp
meta.tail.enum.cpp
meta.tail.extern.cpp
Expand All @@ -252,11 +263,14 @@ meta.template.definition.cpp
meta.template.explicit-instantiation.cpp
meta.toc-list.banner.block.cpp
meta.toc-list.banner.double-slash.cpp
meta.type.cpp
meta.using-namespace.cpp
punctuation.accessor.attribute.cpp
punctuation.accessor.initializer.cpp
punctuation.cpp
punctuation.definition.begin.bracket.square
punctuation.definition.begin.bracket.square.array.type.cpp
punctuation.definition.begin.bracket.square.binding.cpp
punctuation.definition.begin.bracket.square.cpp
punctuation.definition.capture.begin.lambda.cpp
punctuation.definition.capture.end.lambda.cpp
Expand All @@ -269,6 +283,7 @@ punctuation.definition.comment.end.documentation.cpp
punctuation.definition.directive.cpp
punctuation.definition.end.bracket.square
punctuation.definition.end.bracket.square.array.type.cpp
punctuation.definition.end.bracket.square.binding.cpp
punctuation.definition.end.bracket.square.cpp
punctuation.definition.function.pointer.dereference.cpp
punctuation.definition.function.return-type.cpp
Expand All @@ -277,10 +292,10 @@ punctuation.definition.parameters.begin.lambda.cpp
punctuation.definition.parameters.begin.preprocessor.cpp
punctuation.definition.parameters.end.lambda.cpp
punctuation.definition.parameters.end.preprocessor.cpp
punctuation.definition.string.begin
punctuation.definition.string.$2.begin
punctuation.definition.string.$2.end
punctuation.definition.string.begin.assembly.cpp
punctuation.definition.string.begin.cpp
punctuation.definition.string.end
punctuation.definition.string.end.assembly.cpp
punctuation.definition.string.end.cpp
punctuation.section.angle-brackets.begin.template.call.cpp
Expand All @@ -291,6 +306,7 @@ punctuation.section.arguments.begin.bracket.curly.initializer.cpp
punctuation.section.arguments.begin.bracket.round.decltype.cpp
punctuation.section.arguments.begin.bracket.round.function.call.cpp
punctuation.section.arguments.begin.bracket.round.function.call.initializer.cpp
punctuation.section.arguments.begin.bracket.round.function.call.upper-case.cpp
punctuation.section.arguments.begin.bracket.round.function.member.cpp
punctuation.section.arguments.begin.bracket.round.initializer.cpp
punctuation.section.arguments.begin.bracket.round.operator.alignas.cpp
Expand All @@ -299,7 +315,8 @@ punctuation.section.arguments.begin.bracket.round.operator.noexcept.cpp
punctuation.section.arguments.begin.bracket.round.operator.sizeof.cpp
punctuation.section.arguments.begin.bracket.round.operator.sizeof.variadic.cpp
punctuation.section.arguments.begin.bracket.round.operator.typeid.cpp
punctuation.section.arguments.begin.bracket.round.static_assert.cpp
punctuation.section.arguments.begin.bracket.round.requires.cpp
punctuation.section.arguments.begin.bracket.round.static-assert.cpp
punctuation.section.arguments.end.bracket.curly.initializer.cpp
punctuation.section.arguments.end.bracket.round.decltype.cpp
punctuation.section.arguments.end.bracket.round.function.call.cpp
Expand All @@ -312,7 +329,8 @@ punctuation.section.arguments.end.bracket.round.operator.noexcept.cpp
punctuation.section.arguments.end.bracket.round.operator.sizeof.cpp
punctuation.section.arguments.end.bracket.round.operator.sizeof.variadic.cpp
punctuation.section.arguments.end.bracket.round.operator.typeid.cpp
punctuation.section.arguments.end.bracket.round.static_assert.cpp
punctuation.section.arguments.end.bracket.round.requires.cpp
punctuation.section.arguments.end.bracket.round.static-assert.cpp
punctuation.section.attribute.begin.cpp
punctuation.section.attribute.end.cpp
punctuation.section.block.begin.bracket.curly.class.cpp
Expand Down Expand Up @@ -402,13 +420,15 @@ punctuation.vararg-ellipses.variable.parameter.preprocessor.cpp
storage.modifier.$1.cpp
storage.modifier.$8.cpp
storage.modifier.array.bracket.square
storage.modifier.const.cpp
storage.modifier.cpp
storage.modifier.inline.cpp
storage.modifier.lambda.$0.cpp
storage.modifier.pointer.cpp
storage.modifier.reference.cpp
storage.modifier.specifier.$3.cpp
storage.modifier.specifier.extern.cpp
storage.modifier.specifier.functional.post-parameters.$10.cpp
storage.modifier.specifier.functional.post-parameters.$5.cpp
storage.modifier.specifier.functional.pre-parameters.$0.cpp
storage.modifier.specifier.parameter.cpp
Expand Down Expand Up @@ -452,7 +472,8 @@ storage.type.union.declare.cpp
storage.type.union.parameter.cpp
string.quoted.double.cpp
string.quoted.double.include.cpp
string.quoted.double.raw
string.quoted.double.raw.$2
string.quoted.double.raw.cpp
string.quoted.double.raw.regex.cpp
string.quoted.other.lt-gt.include.cpp
string.quoted.single.cpp
Expand All @@ -462,17 +483,43 @@ support.type.built-in.posix-reserved.cpp
support.type.built-in.posix-reserved.pthread.cpp
support.type.posix-reserved.cpp
support.type.posix-reserved.pthread.cpp
variable.camel-case.cpp
variable.language.this.cpp
variable.lower-case.cpp
variable.other.asm.label.cpp
variable.other.assignment.cpp
variable.other.declare.cpp
variable.other.definition.pointer.function.cpp
variable.other.enummember.cpp
variable.other.for.cpp
variable.other.macro.argument.cpp
variable.other.object
variable.other.object.access.cpp
variable.other.object.access.$4.cpp
variable.other.object.access.$5.cpp
variable.other.object.access.$6.cpp
variable.other.object.access.$7.cpp
variable.other.object.access.$8.cpp
variable.other.object.access.$9.cpp
variable.other.object.construction.cpp
variable.other.object.declare.cpp
variable.other.object.declare.for.cpp
variable.other.object.property.cpp
variable.other.property.cpp
variable.other.unknown.$1.cpp
variable.other.unknown.$10.cpp
variable.other.unknown.$19.cpp
variable.other.unknown.$2.cpp
variable.other.unknown.$24.cpp
variable.other.unknown.$28.cpp
variable.other.unknown.$3.cpp
variable.other.unknown.$4.cpp
variable.other.unknown.$49.cpp
variable.other.unknown.$5.cpp
variable.other.unknown.$8.cpp
variable.parameter.capture.cpp
variable.parameter.cpp
variable.parameter.initializer.cpp
variable.parameter.pointer.function.cpp
variable.parameter.preprocessor.cpp
variable.parameter.preprocessor.cpp
variable.snake-case.cpp
variable.upper-case.cpp
3 changes: 3 additions & 0 deletions commands/project/publish
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,6 @@

vsce publish --pat "$1" && echo "published on VSCE"
ovsx publish -p "$2" && echo "published on OVSX"

tag_name="$(jq '.version' ./package.json)"
git tag "$tag_name" && git push origin "$tag_name"
5 changes: 5 additions & 0 deletions commands/project/test
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
#!/usr/bin/env bash

if [ -z "$FORNIX_FOLDER" ]
then
FORNIX_FOLDER="."
fi

npx textmate-tester \
--textmateExtension cpp \
--syntax "$FORNIX_FOLDER/autogenerated/cpp.tmLanguage.json" \
Expand Down
56 changes: 53 additions & 3 deletions commands/start
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,62 @@
#
# summary
#
# find fornix, make sure nix exists
# make sure nix exists
# find fornix
# with no arguments, this simply starts the shell
# with an argument, it refreshes the project connections, then runs `$commands_folder/project/$the_arguments`

# if nix doesnt exist
if [ -z "$(command -v "nix-shell")" ]
then
echo runinng installer_helper
#
# find the settings/extensions/nix/installer_helper
#
path_to_installer_helper=""
file_name="settings/extensions/nix/installer_helper"
folder_to_look_in="$PWD"
while :
do
# check if file exists
if [ -f "$folder_to_look_in/$file_name" ]
then
path_to_installer_helper="$folder_to_look_in/$file_name"
break
else
if [ "$folder_to_look_in" = "/" ]
then
break
else
folder_to_look_in="$(dirname "$folder_to_look_in")"
fi
fi
done
# couldn't find it
if [ -z "$path_to_installer_helper" ]
then
#
# what to do if file never found
#
echo "I'm a script running with a pwd of:$PWD"
echo "I'm looking for $file_name in a parent folder"
echo "I'm exiting now because I wasnt able to find it"
echo "thats all the information I have"
exit
#
# found it
#
else
# if wasnt able to install, then exit
export install_repo="false" # we only need nix
if ! . "$path_to_installer_helper"; then
# the installer will have the instructions/error messages
exit
fi
unset install_repo
fi
fi

#
# find the fornix_core
#
Expand Down Expand Up @@ -198,8 +250,6 @@ then
fi
fi

. "$FORNIX_FOLDER/settings/extensions/nix/commands/ensure_nix_installed"

# just start the shell with no arguments (arguments might be supported in the future)
"$FORNIX_COMMANDS_FOLDER/shell"
if [ "$FORNIX_DEBUG" = "true" ]; then
Expand Down
Loading
Loading