Skip to content

Commit

Permalink
JavaScript – wip
Browse files Browse the repository at this point in the history
  • Loading branch information
brendt committed Mar 19, 2024
1 parent b579e19 commit 0a869fc
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
4 changes: 3 additions & 1 deletion src/Languages/JavaScript/JavaScriptLanguage.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types=1);

namespace Tempest\Highlight\Languages\JavaScript;

use Tempest\Highlight\Languages\Base\BaseLanguage;
Expand Down Expand Up @@ -91,4 +93,4 @@ public function getPatterns(): array
new JsDoubleQuoteValuePattern(),
];
}
}
}
4 changes: 3 additions & 1 deletion src/Languages/JavaScript/Patterns/JsPropertyPattern.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types=1);

namespace Tempest\Highlight\Languages\JavaScript\Patterns;

use Tempest\Highlight\IsPattern;
Expand All @@ -21,4 +23,4 @@ public function getTokenType(): TokenType
{
return TokenType::PROPERTY;
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
namespace Tempest\Highlight\Tests\Languages\Php\Patterns;

use PHPUnit\Framework\TestCase;
use Tempest\Highlight\Languages\Php\Patterns\MultilineCommentPattern;
use Tempest\Highlight\Languages\Php\Patterns\MultilineSingleDocCommentPattern;
use Tempest\Highlight\Tests\TestsPatterns;

Expand Down

0 comments on commit 0a869fc

Please sign in to comment.