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

feat: dart language support #68

Merged
merged 6 commits into from
Dec 4, 2021
Merged

feat: dart language support #68

merged 6 commits into from
Dec 4, 2021

Conversation

aldy505
Copy link
Member

@aldy505 aldy505 commented Nov 28, 2021

This is pretty painful

Closes #45

@codecov
Copy link

codecov bot commented Nov 28, 2021

Codecov Report

Merging #68 (a69219b) into master (cbce1bd) will not change coverage.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff            @@
##            master       #68   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files           26        28    +2     
  Lines          945      1032   +87     
  Branches        45        55   +10     
=========================================
+ Hits           945      1032   +87     
Impacted Files Coverage Δ
src/index.ts 100.00% <100.00%> (ø)
src/languages/c.ts 100.00% <100.00%> (ø)
src/languages/cpp.ts 100.00% <100.00%> (ø)
src/languages/cs.ts 100.00% <100.00%> (ø)
src/languages/dart.ts 100.00% <100.00%> (ø)
src/languages/java.ts 100.00% <100.00%> (ø)
src/languages/javascript.ts 100.00% <100.00%> (ø)
src/shebang.ts 100.00% <100.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update cbce1bd...a69219b. Read the comment docs.

@aldy505 aldy505 requested a review from farhan443 November 28, 2021 10:16
@@ -39,4 +39,6 @@ export const CS: LanguagePattern[] = [
{ pattern: /System\.(in|out)\.\w+/, type: 'not' },
// Avoiding Ruby confusion
{ pattern: /\bmodule\s\S/, type: 'not' },
// Avoiding Dart confusion
{ pattern: /^import\s("|')dart:\w+("|')/, type: 'not' },
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

import statement can't be preceded with a whitespace?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

bisa aja sih sebenernya, but don't know

{ pattern: /^\s*await\sfor/, type: 'keyword.control' },
{ pattern: /^\s*typedef\s.+\s=/, type: 'keyword.control' },
// Avoiding confusion with C
{ pattern: /\blong\b/, type: 'not' },
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can the long keyword surrounded by punctuation? If not, you might want to use \s instead.

@@ -48,4 +48,6 @@ export const C: LanguagePattern[] = [
},
// Avoiding Lua confusion
{ pattern: /local\s(function|\w+)?/, type: 'not' },
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shouldn't it be \s+ instead of \s?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ga ada hubungannya sama dart

@aldy505 aldy505 requested a review from farhan443 November 30, 2021 02:07
@aldy505
Copy link
Member Author

aldy505 commented Nov 30, 2021

woi gimana @farhan443

@aldy505 aldy505 merged commit d5c7703 into master Dec 4, 2021
@aldy505 aldy505 deleted the language/dart branch December 4, 2021 11:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

new language: Dart
3 participants