profile
viewpoint

babyraging/yash 4

Yet Another Syntax Highlighter for lex/yacc & flex/bison.

pull request commentvuetifyjs/vuetify

fix(VSlideGroup): vertical scroll lock for touch

Hi there, I found out that this PR would create undesirable behavior for the v-chip-group with column props set. On mobile device, if we have a very long list of chips inside the v-chip-group with column prop, since the vertical scroll is locked, the user cannot scroll down anymore.

@johnleider

ClickerMonkey

comment created time in 19 days

issue closedbabyraging/yash

Highlighting bug on %union

Whenever there is a template variable defined inside a %union in a Bison/Yacc file, the token in the next line does not get colorized.

Minimal repro:

%union {
	class std::vector<int> *varvec;
	int intval;
}

In this example, 'int' is not colorized.

closed time in a month

marzojr

issue commentbabyraging/yash

Highlighting bug on %union

Closing the issue since we cannot do anything about it.

marzojr

comment created time in a month

issue commentbabyraging/yash

Highlighting bug on %union

Hi there, thanks for the issue.

The syntax highlight inside the %union block is handled by the default C/C++ highlighter, therefore if there is a bug, we cannot do anything about it.

In this particular case, you will also find that the entire second line will not be highlighted, if you try to write those 2 lines of code inside a .cpp file.

I think this might be a bug for the C/C++ highlighter since the syntax is good according to the compiler. Anyway, in C++ you don't need to write "class", std::vector<int>* varvec; is already good :), in this everything gets colorized.

marzojr

comment created time in a month

delete branch babyraging/yash

delete branch : 0.2.5

delete time in a month

release babyraging/yash

v0.2.5

released time in a month

created tagbabyraging/yash

tagv0.2.5

Yet Another Syntax Highlighter for lex/yacc & flex/bison.

created time in a month

issue closedbabyraging/yash

[Bug] Token alias is being ignored

Summary

Aliasing a Token and using that aliased token will result in the token being marked as error. It also is not having a special Syntax-Highlighting nor is the tooltip displayed.

Steps to Reproduce

  1. Create a file called eg. file.y
  2. Paste the code at the end of this section into it
    • YST_TEST is marked as unused
    • "test" is missing tooltip

Expected

    • YST_TEST is marked as being used
    • "test" is displaying a tooltip

Example

image

%union { char* str; }
%token <str> YST_TEST "test"
%start start

%%

start: 'a'
     | "something"
     | "test"
     ;

%%

Related Documentation

https://www.gnu.org/software/bison/manual/html_node/Token-Decl.html

closed time in a month

X39

push eventbabyraging/yash

summer

commit sha bb66b54ea258a2b5e28fdc7f474377f76888ca0b

Add token alias support

view details

summer

commit sha 66face2700c19ec8dcfc87424bd0a2df7ebd93d2

Release 0.2.5 - added token alias - fixes #2

view details

push time in a month

create barnchbabyraging/yash

branch : 0.2.5

created branch time in a month

fork babyraging/go-static-linking

Demo of how to static link a c library to some go code.

fork in a month

issue commentbabyraging/yash

[Bug] Token alias is being ignored

Hi there, thank you very much for the issue, I'm glad that you provided an example code for me to test, thanks again :)

Yes, this is a feature that I wanted to add weeks ago but then... I forgot it.....

I will try to have it fixed by the weekend.

X39

comment created time in 2 months

created tagbabyraging/yash

tagv0.2.4

Yet Another Syntax Highlighter for lex/yacc & flex/bison.

created time in 2 months

release babyraging/yash

v0.2.4

released time in 2 months

delete branch babyraging/yash

delete branch : 0.2.4

delete time in 2 months

push eventbabyraging/yash

Emilio Bendotti

commit sha 0f39e33cc2c16e31d44f5e0c1e6abbc2b16291e4

Fixed syntax highlight single line comment inside keywords (yacc)

view details

summer

commit sha 7b5d702c471263cb8df9cd515708169a2f8c648c

Release 0.2.4 - see change log

view details

push time in 2 months

push eventbabyraging/yash

babyraging

commit sha 31fa3c60227fb18a0d18c6ca4333d5fdd2fec4ba

Update CHANGELOG.md fix typo

view details

push time in 2 months

delete branch babyraging/yash

delete branch : 0.2.3

delete time in 2 months

delete branch babyraging/yash

delete branch : hotfix-brackets

delete time in 2 months

created tagbabyraging/yash

tagv0.2.3

Yet Another Syntax Highlighter for lex/yacc & flex/bison.

created time in 2 months

release babyraging/yash

v0.2.3

released time in 2 months

push eventbabyraging/yash

Emilio Bendotti

commit sha 7594ad24b9e092f9f7b482f30e5fd3692f2e865a

- fix escape for { (lex)

view details

summer

commit sha df819385b23fb106d58d2238f5bf7d64a8388024

Fixed quantifier and error issue

view details

summer

commit sha 662bf2f9a76853993f973359f666bb35db9edbed

Merge hotfix bracket escape

view details

summer

commit sha 27a8d37616031c419ec51587a727bd866781d8f7

Now lex parser detects character excape

view details

summer

commit sha 44f75e6f01f614283f41ef1e652e874c54c17282

Changed lex completion rule and complete keywords

view details

summer

commit sha f8ba78c9fec18c922c4e63ad6678fce698c1ca85

Release 0.2.3 - see changelog

view details

push time in 2 months

push eventbabyraging/yash

summer

commit sha f8ba78c9fec18c922c4e63ad6678fce698c1ca85

Release 0.2.3 - see changelog

view details

push time in 2 months

push eventbabyraging/yash

summer

commit sha 44f75e6f01f614283f41ef1e652e874c54c17282

Changed lex completion rule and complete keywords

view details

push time in 2 months

create barnchbabyraging/yash

branch : 0.2.3

created branch time in 2 months

delete branch babyraging/yash

delete branch : 0.2.2

delete time in 2 months

created tagbabyraging/yash

tagv0.2.2

Yet Another Syntax Highlighter for lex/yacc & flex/bison.

created time in 2 months

release babyraging/yash

v0.2.2

released time in 2 months

created tagbabyraging/yash

tagv0.2.1

Yet Another Syntax Highlighter for lex/yacc & flex/bison.

created time in 2 months

release babyraging/yash

v0.2.1

released time in 2 months

created tagbabyraging/yash

tagv0.2.0

Yet Another Syntax Highlighter for lex/yacc & flex/bison.

created time in 2 months

release babyraging/yash

v0.2.0

released time in 2 months

push eventbabyraging/yash

summer

commit sha b532fbe96b1c64d3a76cdeb9f3bf4d7912171823

Add type definition support - changes on file extensions - changed dollars sign scope name - fixed a bug related to the union types

view details

summer

commit sha ea86d14f2b1895f4ae6290f1eedcc77c4ce5ce6a

Added embedded language in package.json

view details

summer

commit sha f890555a85ba19faa53693b9c7b693a1e78dca1e

Release 0.2.2 - see change log

view details

push time in 2 months

push eventbabyraging/yash

summer

commit sha ea86d14f2b1895f4ae6290f1eedcc77c4ce5ce6a

Added embedded language in package.json

view details

summer

commit sha f890555a85ba19faa53693b9c7b693a1e78dca1e

Release 0.2.2 - see change log

view details

push time in 2 months

delete branch babyraging/yash

delete branch : 0.2.1

delete time in 2 months

create barnchbabyraging/yash

branch : 0.2.2

created branch time in 2 months

issue commentbabyraging/yash

Syntax highlighting after pattern with start condition and escaped quote incorrect

The issue should be fixed with 0.2.1.

rveerd

comment created time in 2 months

push eventbabyraging/yash

summer

commit sha f169e5b24f7ae98acd5d47f6e15d16211f8a01bf

Prepare for 0.2.1 release

view details

summer

commit sha 51103eeb13bdc736ef2ae3f6a600130d4e0b2442

Release 0.2.1 - changed README - fixes #1 - see changelog for detail

view details

push time in 2 months

issue closedbabyraging/yash

Syntax highlighting after pattern with start condition and escaped quote incorrect

In the following Lex input file syntax highlighting stops working correctly after the pattern in the rule returning "STRING":

NUMBER      [0-9]+
ID          [$A-Za-z_][$0-9A-Za-z_]*
DOTTED_ID   {ID}("."{ID})*

%x TAG

%%

<TAG>{NUMBER}           { return "NUMBER"; }
<TAG>\"(\\\"|[^"])*\"   { return "STRING"; } /* error */
<TAG>{DOTTED_ID}        { return "ID"; }
<TAG>"@"{DOTTED_ID}     { return "PARAM"; }

If I remove the <TAG> or trailing \" in the pattern, syntax highlighting works correctly.

Yash Version: 0.2.0 VS Code Version: 1.44.2 (user setup) Commit: ff915844119ce9485abfe8aa9076ec76b5300ddd Date: 2020-04-16T16:36:23.138Z (1 wk ago) Electron: 7.1.11 Chrome: 78.0.3904.130 Node.js: 12.8.1 V8: 7.8.279.23-electron.0 OS: Windows_NT x64 10.0.18362

closed time in 2 months

rveerd

push eventbabyraging/yash

summer

commit sha 51103eeb13bdc736ef2ae3f6a600130d4e0b2442

Release 0.2.1 - changed README - fixes #1 - see changelog for detail

view details

push time in 2 months

create barnchbabyraging/yash

branch : 0.2.1

created branch time in 2 months

issue commentbabyraging/yash

Syntax highlighting after pattern with start condition and escaped quote incorrect

Hi rveerd, thank you for the issue.

Indeed this is wrong, I can reproduce it, thanks again for finding it.

Maybe tonight or tomorrow I'll have the issue fixed.

rveerd

comment created time in 2 months

delete branch babyraging/yash

delete branch : 0.2.0

delete time in 3 months

delete branch babyraging/yash

delete branch : 0.1.2

delete time in 3 months

create barnchbabyraging/yash

branch : 0.1.2

created branch time in 3 months

delete branch babyraging/yash

delete branch : 0.1.2

delete time in 3 months

push eventbabyraging/yash

summer

commit sha ca30774147a075e803d897aea602ac0456421425

Release ver. 0.2.0 - add diagnostic - add language services - general optimization See Changelog for details

view details

push time in 3 months

push eventbabyraging/yash

summer

commit sha f7134441c6c31fffc00d434d0377ac01109b127b

Updated readme

view details

push time in 3 months

push eventbabyraging/yash

summer

commit sha a010d6d1d6f260a5196a87302b1706530a3ceb85

Preparing readme

view details

push time in 3 months

push eventbabyraging/yash

summer

commit sha 9ab4c9230a3ff08b3e1d91baa319ff2d8047b19e

Save

view details

summer

commit sha 08d1eab40828ab5b5caf8660af4e661363651c19

Add yacc basic diagnosi

view details

summer

commit sha 98b50b08e1f4fc4ff91bb091c3a69cf55266fb64

Add diagnostics form lex, general bug fix

view details

push time in 3 months

create barnchbabyraging/yash

branch : 0.2.0

created branch time in 3 months

push eventbabyraging/yash

Emilio Bendotti

commit sha f0bc7726842c4e09c5c11c06ff1f76dbb560c2ed

Fixed recognition of extended nonterminal name reference

view details

Emilio Bendotti

commit sha 89d49e5e508b824df2a4cf5fc78f502b58c7b933

- Change \b with \s that support also tab, \n, .. (yacc) - Fix pattern of variables, nonterminal extension and result (yacc)

view details

Emilio Bendotti

commit sha 125463044c99b3d3a1ce4432f07c82565a7b9673

- Added recognition of start condition block (lex) - Fix spaces in %left, %right, %nonassoc, %token, %type

view details

summer

commit sha fc99f3aea8e669d013a6463df1bac82019ce3b3c

Release 0.1.2

view details

push time in 3 months

delete branch babyraging/yash

delete branch : 0.1.1

delete time in 3 months

create barnchbabyraging/yash

branch : 0.1.1

created branch time in 3 months

delete branch babyraging/yash

delete branch : 0.1.1

delete time in 3 months

push eventbabyraging/yash

summer

commit sha f1a8e6d37ee564d9d5b2b46538969f54aa9df9d2

Fixed wrong type detection

view details

Emilio Bendotti

commit sha 319330bb6a5bc714560bf2b3ca7d305ef05925af

- fixed wrong recognition of not allowed single line commment in lex

view details

Emilio Bendotti

commit sha c701a1326ccb095362138ab749d56fdf4db0ac5a

Better division of 3 parts of file (lex)

view details

summer

commit sha bc5b3cb8fd1765786fb65f3fe84cab442ba0f8c1

Publish 0.1.1

view details

push time in 3 months

create barnchbabyraging/yash

branch : 0.1.1

created branch time in 3 months

delete branch babyraging/yash

delete branch : 0.0.8

delete time in 3 months

push eventbabyraging/yash

Emilio Bendotti

commit sha 271a9e6aa002a6aa2ca42e41d889ddff3fbd450c

- Added more keywords (yacc) - Fixed multiplle type/token definitions on multiple lines

view details

Emilio Bendotti

commit sha 0c3aedeba7c9f9f19c12ef37fc2a0d3144968d2a

- reintroduce %pure-parser

view details

summer

commit sha d2043b2da02338b85bee419ee4ee90d4341e9d54

Bug fixes and new features, see CHANGELOG - added fancier hover message - fixed nested C code block detection - fix token detection

view details

Emilio Bendotti

commit sha 30742fb3a36584c3dc65455435a8b491a2187658

fix recognition of comment in yacc

view details

summer

commit sha 116b1ea779bf4e529a6130cdc708d93468b325d5

Prepare for release 0.1.0 - fixed not detecting %top{} on flex - removed infor message from hover

view details

push time in 3 months

push eventbabyraging/yash

summer

commit sha 116b1ea779bf4e529a6130cdc708d93468b325d5

Prepare for release 0.1.0 - fixed not detecting %top{} on flex - removed infor message from hover

view details

push time in 3 months

push eventbabyraging/yash

summer

commit sha d2043b2da02338b85bee419ee4ee90d4341e9d54

Bug fixes and new features, see CHANGELOG - added fancier hover message - fixed nested C code block detection - fix token detection

view details

push time in 3 months

issue commentdracula/visual-studio-code

Semantic Highlighting

Glad to hear it! I'm looking forward to it, thank you.

babyraging

comment created time in 3 months

delete branch babyraging/yash

delete branch : 0.0.7

delete time in 3 months

push eventbabyraging/yash

summer

commit sha 13032c32c906edcab455cb801450c1bc4f5168e0

Preparing for 0.0.7 release

view details

summer

commit sha 9d8d1b0fc036998fd84e7e5c90be6f30d7b4bd20

Various bugs fixes, publish 0.0.7

view details

push time in 3 months

push eventbabyraging/yash

summer

commit sha 9d8d1b0fc036998fd84e7e5c90be6f30d7b4bd20

Various bugs fixes, publish 0.0.7

view details

push time in 3 months

create barnchbabyraging/yash

branch : 0.0.7

created branch time in 3 months

push eventbabyraging/yash

summer

commit sha dfdca6a6d46493aa0d272abe6228bf0139cc33c5

Changed extension icon

view details

push time in 3 months

issue openeddracula/visual-studio-code

Semantic Highlighting

Hello,

I was wondering if there is a plan to support the newly semantic highlighting feature.

https://github.com/microsoft/vscode/wiki/Semantic-Highlighting-Overview

The thme looks already great by only adding these lines to the settings.json, I've been using the theme with the feature enabled for a while.

"editor.tokenColorCustomizations": {
	"[Dracula]": {
		"semanticHighlighting": true
	}
}

Thank you.

created time in 3 months

push eventbabyraging/yash

summer

commit sha 618840aacef89f8ae8c316c0f7fd61d9cefd0760

Updated README

view details

push time in 3 months

push eventbabyraging/yash

babyraging

commit sha 7b66997c0177e845c7486515d9ede63ebdab57be

Update README.md

view details

push time in 3 months

push eventbabyraging/yash

summer

commit sha 54439ea50229d39a3642520283db4aeb2b4d4b89

Minor patch, moved gifs

view details

push time in 3 months

push eventbabyraging/yash

summer

commit sha b015f797eb48ad1a4b89459321fa3f8c0a4e79af

Update to version 0.0.3 see CHANGELOG

view details

push time in 3 months

PublicEvent

delete branch babyraging/yash

delete branch : emilio

delete time in 3 months

delete branch babyraging/yash

delete branch : semantic

delete time in 3 months

push eventbabyraging/yash

summer

commit sha 79e2916adfb926dfe0d08d2ff70980b8e6fc155d

Add better logo

view details

push time in 3 months

push eventbabyraging/visual-studio-code

babyraging

commit sha f491298bee565762733e0a88144f5437567f34d0

Enable semantic highlighting

view details

push time in 3 months

more