Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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: 0 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,4 @@ jobs:
with:
go-version: ${{ matrix.go-version }}
- run: go test -v ./...
working-directory: scanner
- run: go test -fuzz=FuzzScanner -fuzztime=30s ./...
working-directory: scanner
2 changes: 1 addition & 1 deletion scanner/constants.go → constants.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.

package scanner
package css

// Error token type is returned when there are errors in the parse.
//
Expand Down
2 changes: 1 addition & 1 deletion scanner/doc.go → doc.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,4 +27,4 @@ Following the CSS specification, an error can only occur when the scanner
finds an unclosed quote or unclosed comment. Everything else is tokenizable
and it is up to a parser to make sense of the token stream.
*/
package scanner
package css
2 changes: 1 addition & 1 deletion scanner/fuzz_test.go → fuzz_test.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package scanner
package css

import (
"bytes"
Expand Down
3 changes: 3 additions & 0 deletions go.mod
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
module github.com/speedata/css

go 1.24
2 changes: 1 addition & 1 deletion scanner/scanner.go → scanner.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.

package scanner
package css

import (
"strings"
Expand Down
3 changes: 0 additions & 3 deletions scanner/go.mod

This file was deleted.

2 changes: 1 addition & 1 deletion scanner/scanner_extra_test.go → scanner_extra_test.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package scanner
package css

import (
"bytes"
Expand Down
2 changes: 1 addition & 1 deletion scanner/scanner_test.go → scanner_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.

package scanner
package css

import (
"bytes"
Expand Down
2 changes: 1 addition & 1 deletion scanner/token.go → token.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.

package scanner
package css

import (
"bytes"
Expand Down
Loading