diff --git a/book/src/list-units.md b/book/src/list-units.md index a33cce16..6fb08854 100644 --- a/book/src/list-units.md +++ b/book/src/list-units.md @@ -89,6 +89,7 @@ and — where sensible — units allow for [binary prefixes](https://en.wikipedi | `Length` | [Yard](https://en.wikipedia.org/wiki/Yard) | `yard`, `yards`, `yd` | | `Length / Volume` | [Miles per gallon](https://en.wikipedia.org/wiki/Fuel_economy_in_automobiles) | `mpg` | | `Length^2` | [darcy](https://en.wikipedia.org/wiki/Darcy_(unit)) | `darcies`, `darcy`, `darcys` | +| `LinesOfCode` | [Lines of code](https://en.wikipedia.org/wiki/Source_lines_of_code) | `LOC`, `SLOC` | | `LuminousFlux` | [Lumen](https://en.wikipedia.org/wiki/Lumen_(unit)) | `lm`, `lumen`, `lumens` | | `LuminousIntensity` | [Candela](https://en.wikipedia.org/wiki/Candela) | `candela`, `candelas`, `cd` | | `MagneticFieldStrength` | [Oersted](https://en.wikipedia.org/wiki/Oersted) | `Oe`, `oersted` | diff --git a/numbat/modules/units/placeholder.nbt b/numbat/modules/units/placeholder.nbt index d2aede01..5dcebdf1 100644 --- a/numbat/modules/units/placeholder.nbt +++ b/numbat/modules/units/placeholder.nbt @@ -66,3 +66,12 @@ dimension Person @name("Person") @aliases(persons, people, capita) unit person: Person + +# A unit for counting lines of code +dimension LinesOfCode + +@name("Lines of code") +@url("https://en.wikipedia.org/wiki/Source_lines_of_code") +@metric_prefixes +@aliases(LOC: short, SLOC: short) +unit LOC: LinesOfCode