prettier-plugin-embed 0.3.0-rc.2 → 0.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -155,11 +155,12 @@ Formatting embedded PHP code requires [`@prettier/plugin-php`](https://github.co
155
155
 
156
156
  #### Ruby
157
157
 
158
- | Option | Default | Description |
159
- | :-----------------------: | :---------------------------------------: | -------------------------------------------------------------------------------------------------- |
160
- | `embeddedRubyIdentifiers` | [`[...]`](./src/embedded/ruby/options.ts) | Tag or comment identifiers that make their subsequent template literals be identified as Ruby code |
158
+ | Option | Default | Description |
159
+ | :-----------------------: | :-------------------------------------------: | -------------------------------------------------------------------------------------------------------------------------------------------------- |
160
+ | `embeddedRubyIdentifiers` | [`[...]`](./src/embedded/ruby/options.ts) | Tag or comment identifiers that make their subsequent template literals be identified as Ruby code |
161
+ | `embeddedRubyParser` | [`undefined`](./src/embedded/ruby/options.ts) | The parser used to parse the Ruby code. Available choices are `"ruby"`, `"rbs"` and `"haml"`. It will auto detect the parser if this is undefined. |
161
162
 
162
- Formatting embedded Ruby code requires [`@prettier/plugin-ruby`](https://github.com/prettier/plugin-ruby) to be loaded and [its dependencies to be installed](https://github.com/prettier/plugin-ruby#getting-started) as well. And [options](https://github.com/prettier/plugin-ruby#configuration) supported by `@prettier/plugin-php` can therefore be used to further control the formatting behavior.
163
+ Formatting embedded Ruby code requires [`@prettier/plugin-ruby`](https://github.com/prettier/plugin-ruby) to be loaded and [its dependencies to be installed](https://github.com/prettier/plugin-ruby#getting-started) as well. And [options](https://github.com/prettier/plugin-ruby#configuration) supported by `@prettier/plugin-ruby` can therefore be used to further control the formatting behavior.
163
164
 
164
165
  #### SQL
165
166
 
@@ -169,7 +170,7 @@ Formatting embedded Ruby code requires [`@prettier/plugin-ruby`](https://github.
169
170
 
170
171
  Formatting embedded SQL code requires [`prettier-plugin-sql`](https://github.com/un-ts/prettier/tree/master/packages/sql#readme) to be loaded as well. And [options](https://github.com/un-ts/prettier/tree/master/packages/sql#parser-options) supported by `prettier-plugin-sql` can therefore be used to further control the formatting behavior.
171
172
 
172
- Note that `prettier-plugin-sql` supports many different SQL dialects, and there's a one-to-one correspondence between the dialects and the identifiers. To support custom identifiers for a specific dialect, put the identifiers after that specific dialect in the identifier list in option `embeddedSqlIdentifiers`, or use [`embeddedOverrides`](#embeddedoverrides).
173
+ Note that `prettier-plugin-sql` supports many different SQL dialects and they are specified by the [`language` or `database` option](https://github.com/un-ts/prettier/tree/master/packages/sql#parser-options). To map a subset of identifiers to another dialect, please use [`embeddedOverrides`](#embeddedoverrides).
173
174
 
174
175
  #### TS
175
176
 
@@ -4,9 +4,9 @@ export declare const embeddedParsers: EmbeddedParsers;
4
4
  export declare const embeddedEmbedders: EmbeddedEmbedders;
5
5
  export declare const embeddedOptions: EmbeddedOptions;
6
6
  import * as __glob__0_0 from "./css/index.js";
7
- import * as __glob__0_1 from "./es/index.js";
8
- import * as __glob__0_2 from "./glsl/index.js";
9
- import * as __glob__0_3 from "./html/index.js";
7
+ import * as __glob__0_1 from "./glsl/index.js";
8
+ import * as __glob__0_2 from "./html/index.js";
9
+ import * as __glob__0_3 from "./es/index.js";
10
10
  import * as __glob__0_4 from "./markdown/index.js";
11
11
  import * as __glob__0_5 from "./noop/index.js";
12
12
  import * as __glob__0_6 from "./php/index.js";